Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
LogoutController Class Reference
Inheritance diagram for LogoutController:
Controller BaseController

Public Member Functions

 actionLogout ()

Public Attributes

 $defaultAction = 'logout'
- Public Attributes inherited from Controller
 $menu = array()
 $breadcrumbs = array()
- Public Attributes inherited from BaseController
 $layout = '//layouts/gportal'
 $mailLayout = '//layouts/mail'

Additional Inherited Members

- Protected Member Functions inherited from BaseController
 beforeAction ($action)

Detailed Description

Definition at line 3 of file LogoutController.php.

Member Function Documentation

LogoutController::actionLogout ( )

Logout the current user and redirect to returnLogoutUrl.

Definition at line 10 of file LogoutController.php.

{
Yii::app()->user->logout();
if (isset($_SERVER['HTTP_REFERER']))
$this->redirect($_SERVER['HTTP_REFERER']);
else
$this->redirect(Yii::app()->controller->module->returnLogoutUrl);
}

The documentation for this class was generated from the following file: