Adrian Godong wrote:
> Hi, I'm trying to implement some user authentication system, and need to
> check current user (from session) on every controller call. I've tried
> placing a beforeFilter method on AppController, but this method doesn't seem
> to be executed.
>
> When I put the beforeFilter on one of the controller, it works.
>
> Does my controller overrides AppController's beforeFilter even though it is
> not declared?

I ran into something similar - beware that beforeFilter is called
before any components get setup called on them, so essentially you
can't use components in beforeFilter.


--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to