Monthly Archives: April 2013

CakePHP logoutRedirect is not the same as loginAction

If you go through the CakePHP Auth example tutorial, you’ll end up with two (not three) configuration settings in your AppController > components > Auth settings. They will look like this: public $components = array( ‘Session’, ‘Auth’ => array( ‘loginRedirect’ … Continue reading

Posted in CakePHP | Leave a comment

CakePHP Auth->allow only works on actions, not controllers

If you follow the CakePHP documentation on Authentication, you might end up with this line of code in your AppController.php file, in the beforeFilter() method. $this->Auth->allow(‘view’, ‘index’); … And that’s fine for demo purposes. But that actually allows all view() … Continue reading

Posted in CakePHP | Leave a comment