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
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
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
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.
--~--~-~--~~~
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
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
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
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
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
>
--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
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
11 matches
Mail list logo