Example #1
0
/** 打印自定义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;
}
Example #2
0
 public function assign($key, $value)
 {
     // 调用模版
     return $this->view->assign($key, $value);
 }