Ejemplo n.º 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";
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     if (!$this->isLogin()) {
         $this->redirect(Dispatcher::conf('login_url'));
     }
 }