This repository has been archived on 2024-12-01. You can view files and clone it, but cannot push or open issues or pull requests.
factuges_web/www/protected/modules/usuario2/controllers/LogoutController.php
david e93adbdd4e - Importación inicial
- Registro, activación y entrada de usuarios


git-svn-id: https://192.168.0.254/svn/Rodax.factuges_web/trunk@2 e455b18d-f7fe-5245-9c43-e2c35af70a32
2013-06-13 16:04:48 +00:00

16 lines
297 B
PHP

<?php
class LogoutController extends Controller
{
public $defaultAction = 'logout';
/**
* Logout the current user and redirect to returnLogoutUrl.
*/
public function actionLogout()
{
Yii::app()->user->logout();
$this->redirect(Yii::app()->controller->module->returnLogoutUrl);
}
}