Home  >  Article  >  Backend Development  >  php zendframework生成静态页面解决思路

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

WBOY
WBOYOriginal
2016-06-13 13:51:50971browse

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,而是直接访问页面吗?
那么你要想想如何更新该页面, 定时?

Statement:
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