Re: Component and beforeFilter() problem

2006-12-30 Thread [EMAIL PROTECTED]
Ah, gotcha. It works fine in beforeRender(). I should have tried it there earlier. Thanks Nate On Dec 31, 12:31 am, "nate" <[EMAIL PROTECTED]> wrote: If your component gets access to the controller in the startup() callback, it might have something to do with the fact that startup() happens af

Re: Component and beforeFilter() problem

2006-12-30 Thread nate
If your component gets access to the controller in the startup() callback, it might have something to do with the fact that startup() happens after beforeFilter(). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ca

Component and beforeFilter() problem

2006-12-30 Thread [EMAIL PROTECTED]
Hey Guys I have a component that uses models from my controllers. The component functions that access the models work fine in all my actions. However, when I try to access the same functions inside beforeFilter I get an error: Notice: Trying to get property of non-object Fatal error: Cal

Re: beforeFilter Problem

2006-11-28 Thread Synchro
On Nov 28, 4:46 am, "nate" <[EMAIL PROTECTED]> wrote: > I think you're thinking of the startup callback, which gets called > after beforeFilter. Yup, that's the one. I found for example that you can't call obAuth::lock() from a beforeFilter because of this. --~--~-~--~~~

RE: beforeFilter Problem

2006-11-27 Thread Mariano Iglesias
riginal- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de nate Enviado el: Martes, 28 de Noviembre de 2006 02:38 a.m. Para: Cake PHP Asunto: Re: beforeFilter Problem Actually they are. Everything is instantiated in the controller's c

Re: beforeFilter Problem

2006-11-27 Thread nate
Actually they are. Everything is instantiated in the controller's constructor, except for helpers. --~--~-~--~~~---~--~~ 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@go

RE: beforeFilter Problem

2006-11-27 Thread Mariano Iglesias
KE ON! -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de nate Enviado el: Martes, 28 de Noviembre de 2006 01:46 a.m. Para: Cake PHP Asunto: Re: beforeFilter Problem I think you're thinking of the startup callback, which gets called after be

Re: beforeFilter Problem

2006-11-27 Thread nate
I think you're thinking of the startup callback, which gets called after beforeFilter. --~--~-~--~~~---~--~~ 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.co

Re: beforeFilter Problem

2006-11-27 Thread Adrian Godong
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 >

RE: beforeFilter Problem

2006-11-27 Thread Mariano Iglesias
--Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de Synchro Enviado el: Lunes, 27 de Noviembre de 2006 09:27 p.m. Para: Cake PHP Asunto: Re: beforeFilter Problem I ran into something similar - beware that beforeFilter is called before any components get setup called o

Re: beforeFilter Problem

2006-11-27 Thread Synchro
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