Пример #1
0
 /**
  * Logout action.
  *
  * Logout the user, and redirect them to the login page.
  *
  * @return void
  */
 public function logoutAction()
 {
     $frontendMessage = new Phprojekt_Notification();
     $frontendMessage->setControllProcess(Phprojekt_Notification::LAST_ACTION_LOGOUT);
     $frontendMessage->saveFrontendMessage();
     Phprojekt_Auth::logout();
     $config = Phprojekt::getInstance()->getConfig();
     $this->_redirect('../../index.php');
     die;
 }