function __construct() { parent::__construct(); auth::handleLogin(); $type = session::get('role'); if ($type != 'owner') { session::destroy(); header('Location: ' . URL . 'index'); } }
public function __construct() { parent::__construct(); auth::handleLogin(); $this->view->js = array('note/js/default.js'); }