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 cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to