buildHtml 函数没有加入 view_begin 钩子

浏览:518 发布日期:2015/01/30 分类:求助交流
buildHtml函数是否应该加入 view_begin view_end 钩子啊

模板解析上加了 生成上也应该加上吧 代码没有细看过只是今天无意需要修改文件打开看了一眼


protected function buildHtml($htmlfile='',$htmlpath='',$templateFile='') {
Hook::listen('view_begin',$templateFile);
$content = $this->fetch($templateFile);
Hook::listen('view_end');
$htmlpath = !empty($htmlpath)?$htmlpath:HTML_PATH;
$htmlfile = $htmlpath.$htmlfile.C('HTML_FILE_SUFFIX');
Storage::put($htmlfile,$content,'html');
return $content;
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>