Skip to content

Commit

Permalink
Create logout.ctp
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Nov 29, 2015
1 parent 09788c4 commit 38f34f2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/Template/Bake/Element/Controller/logout.ctp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<%
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
%>

/**
* Logout method
*
* @return void
*/
public function logout() {
return $this->redirect($this->Auth->logout());
}

0 comments on commit 38f34f2

Please sign in to comment.