当前位置:Gxlcms > PHP教程 > phpzendframework生成静态页面解决思路

phpzendframework生成静态页面解决思路

时间:2021-07-01 10:21:17 帮助过:22人阅读

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

人气教程排行