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