Here is a post where nate suggests a way to model sessions..
http://groups.google.com/group/cake-php/browse_thread/thread/8911d61137f80eb5/00217852f762f67c?lnk=gst&q=novice.program+session+model#00217852f762f67c
Thanks.
On 7/7/08, francky06l <[EMAIL PROTECTED]> wrote:
>
>
> 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
> >
>
--
Thanks & Regards,
Novice.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---