/**
* 模板路径
* @param type $templateFile
* @return boolean|string
*/
private function parseTemplateFile($templateFile = '') {
$templateFile = parseTemplateFile($templateFile);
if (false === $templateFile) {
if (APP_DEBUG) {
// 模块不存在 抛出异常
throw_exception("当前页面模板不存在(详细信息已经记录到网站日志)!");
} else {
send_http_status(404);
exit;
}
}
return $templateFile;
}
最佳答案