Auth component only stores values that are in the users table, so you
can grab the user id using $this->Auth->user('id') and then do a find.
Or alternatively you can use $this->Auth->login and once if it
successfully logs in then do a find on the group data and store it in
the session for later use especially if you are going to be accessing
it a lot. But if you only need it in one place I'd just recommend
doing the find when it is needed.

On Apr 20, 5:52 pm, capo64 <[email protected]> wrote:
> Hi I have a setup with Users and Groups.
>
> I've been reading user data using this in my views:
> $session->read('Auth.User.full_name'); ..etc
>
> Now I need to access information about the group of the user. How can
> I go about doing this?
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> 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 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to