On 7/19/06, nate [EMAIL PROTECTED] wrote:
(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.
maaannn, the things we learn here, make life much
After seeing some excellent posts here on the group, I've attempted to
implement some basic authentication into my CakePHP instance by
overriding the AppController class. (I don't have any roles, but I do
need basic authentication.) My beforeFilter() method works just fine
until I add the
Hi Devo,
The reqestAction will be run for all controllers, including the login
controller within the requestAction call, hence the loop.
You need only introduce some logic to break the chain e.g. define the
beforeFilter in your login controller and DON'T call the parent.
HTH,
AD7six