#36 | if(!is_file($php_file) || DEBUG) { |
#37 | $tpl_file = core::get_original_file($filename, VIEW_PATH.$_ENV['_theme'].'/'); |
#38 | |
#39 | if(!$tpl_file) { |
#40 | throw new Exception('模板文件 '.$_ENV['_theme'].'/'.$filename.' 不存在'); |
#41 | } |
#42 | |
#43 | if(FW($php_file, $this->tpl_parse($tpl_file)) === false) { |
#44 | throw new Exception("写入模板编译文件 $filename 失败"); |
#45 | } |