public function _main()
 {
     if (empty($this->method) && !Session::singleton()->isAdmin()) {
         redirect('/');
     } else {
         if (!empty($this->method)) {
             $this->showPage();
         } else {
             $this->_browse();
         }
     }
     return true;
 }
示例#2
0
 public function _sair()
 {
     Session::singleton()->logout();
     redirect('/');
 }