模板解析上加了 生成上也应该加上吧 代码没有细看过只是今天无意需要修改文件打开看了一眼
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;
}
最佳答案