public static function requireFile($file, $args = []) { empty($args) || extract($args, EXTR_PREFIX_SAME, "xxx"); Cml::$debug && Debug::addTipInfo($file, Debug::TIP_INFO_TYPE_INCLUDE_FILE); return require $file; }
/** * 显示404页面 * * @param string $tpl 模板路径 * * @return void */ public static function show404Page($tpl = null) { self::sendHttpStatus(404); is_null($tpl) && ($tpl = Config::get('404_page')); is_file($tpl) && Cml::requireFile($tpl); exit; }