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