Session in not available in models. The best in your case would be to
pass the parameters to the behavior from controller.
hth
On Jul 7, 2:05 pm, "Siegfried Hirsch" <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> just a simple question, I guess:
>
> How could I load the AuthComponent from a behavior, that I am writing ?
>
> I think it should work with something like:
>
> App::import('Component', 'AuthComponent');
> $this->Auth = new AuthComponent();
> from within the behavior.
>
> But if I want to call it like this:
> $user = $this->Auth->user();
> I get a Undefined property: AuthComponent::$Session
>
> Any hints ?
>
> Thanks and sorry for the other incomplete posting in the list.
>
> Siegfried
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---