Created
March 12, 2012 18:54
-
-
Save maxparm/2023951 to your computer and use it in GitHub Desktop.
Lithium - redirect in controller's _init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FooController extends \lithium\action\Controller { | |
public function _init() { | |
parent::_init(); | |
$userNotConnected = true; | |
if($userNotConnected) { | |
return $this->redirect('logout', array('exit'=>true)); | |
} | |
} | |
public function index() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment