Couple things you could do here:
(1) Change $this->action != 'login' to !in_array($this->action,
array('login', 'isLoggedIn'))
(2) Or better yet, move the isLoggedIn( ) check to the beforeFilter
itself, since that should be the only place you'd need it.
(3) Or, make isLoggedIn a private method (prefixed with '_' of
AppController, so you could call $this->_isLoggedIn() instead of using
requestAction, which is slower, and largely pointless in your case.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---