php zendframework生成静态页面解决思路

WBOY
Release: 2016-06-13 13:51:50
Original
970 people have browsed it

php zendframework生成静态页面
如何在zf下面生成静态页面呢 请大家指定迷津

------解决方案--------------------
貌似不支持静态页面缓存,只有文件缓存,如果非要做静态页面缓存可以这样做
$str = $this->view->('index.phtml');
file_put_contents('public/html/index.html',$str);
就ok
------解决方案--------------------
貌似不支持静态页面缓存,只有文件缓存,如果非要做静态页面缓存可以这样做
$str = $this->view->render('index.phtml');
file_put_contents('public/html/index.html',$str);
就ok
------解决方案--------------------
静态...你是要生成之后就不再通过zf,而是直接访问页面吗?
那么你要想想如何更新该页面, 定时?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!