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