/** * 模板错误 * @param string $message 错误代码 * @param string $tpl_name 模板名称 * @return void */ function templateError($message, $tpl_name) { $message = lang('error', $message); $tpl_name = str_replace(FANWE_ROOT, '', $tpl_name); $message = $message . ': ' . $tpl_name; FanweError::systemError($message); }
/** * 错误处理 * @param string $message 错误信息 * @param bool $show 是否显示 * @param bool $save 是否保存 * @param bool $halt 是否停止 * @return void */ function systemError($message, $show = true, $save = true, $halt = true) { require_once fimport('class/error'); FanweError::systemError($message, $show, $save, $halt); }