当前位置: 代码迷 >> PHP >> php zendframework生成静态页面解决思路
  详细解决方案

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

热度:535   发布时间:2012-02-15 12:09:44.0
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,而是直接访问页面吗?
那么你要想想如何更新该页面, 定时?