Yes, components DO get loaded before CakePHP access beforeFilter. You might haven't add the component to the controller $components variable.
On 11/28/06, Synchro <[EMAIL PROTECTED]> wrote: > > > > 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. > > > > > -- Adrian Godong [EMAIL PROTECTED] Microsoft Student Ambassador --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---