/** 打印自定义errorpage * * @param type $code */ function error_page($code) { if (!headers_sent()) { header("HTTP/1.1 {$code} NOT FOUND"); } if (C("PAGE_{$code}")) { $v = new F_View_SViewEngine(); $v->display(C("PAGE_{$code}")); } exit; }
public function assign($key, $value) { // 调用模版 return $this->view->assign($key, $value); }