Monday 13 June 2011

CakePHP Login Redirection

Let's said we want page to be redirected to Reservation index page after a User's login to the website, we can therefore create the login redirection in the beforeFilter() function in UsersController:
 
$this->Auth->loginRedirect = array('controller'=>'reservations', 'action'=>'index');
 
And, i really need to shout at CakePHP for having such a lousy documentation.

No comments: