On 4 abr, 12:48, "bit" <[EMAIL PROTECTED]> wrote:
> That's what I thought. I guess it'd be good to point out then that I'm
> getting this error:
> Fatal error: Call to a member function on a non-object
>
> The line it refers to is: (in a private function that's called in
> beforeFilter() of AppController)
> return $this->Acl->check($user, $aco);
>
> Another way I tested the components was by doing
> if(!isset($this->Acl)) debug('No ACL!');
>
> And when I tried it, I got that debug message.
> Any ideas?
>
> Thanks.
I made an error in my previous message, partly due to an assumption on
my part of what you meant. Components are linked to the controller,
but their startup method isn't run for an error.
Have you overriden any __construct methods?
If you just do
echo $this->name.' controller has these components: ";
pr ($this->components);
what do you see when you are getting that error.
It may be caused by having a not-so-recent version of cake, but I
would guess that it doesn't work because you have overridden the
components array in a sub controller, and for reason unknown it isn't
getting merged with the array you are defining in the app controller
(it should, thanks to the work of cake).
Anyway after a bit of debugging I'm sure the cause will come clear.
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---