public function logOut() { $this->unsetUserFromSession(); $user = new Bobr_User_User(); $user->setAnonymous(); $this->setUserToSession($user); }
protected function showAction() { $data = ''; if (FALSE === Bobr_User_User::isLoged()) { $this->addToTemplate('loginForm', $this->loginForm()); $data .= $this->loadTemplate('/template.phtml'); } else { $data .= $this->showUserPersonal(); } return $data; }