| #31 | if(!is_file($php_file) || DEBUG) { |
| #32 | $tpl_file = core::get_original_file($filename, VIEW_PATH.$_ENV['_theme'].'/'); |
| #33 | |
| #34 | if(!$tpl_file) { |
| #35 | throw new Exception('模板文件 '.$_ENV['_theme'].'/'.$filename.' 不存在'); |
| #36 | } |
| #37 | |
| #38 | if(FW($php_file, $this->tpl_parse($tpl_file)) === false) { |
| #39 | throw new Exception("寫入模板編譯文件 $filename 失敗"); |
| #40 | } |