示例#1
0
 protected function render($params = [])
 {
     header('Content-Type:text/html;charset=utf8');
     extract($params);
     include Dispatcher::conf('view_dir') . $this->controller . "/" . $this->action . ".php";
 }
示例#2
0
 public function __construct()
 {
     if (!$this->isLogin()) {
         $this->redirect(Dispatcher::conf('login_url'));
     }
 }