($this->Auth->user()); and see what values are saved int he session
On Nov 27, 8:22 pm, _Z <Zmcar...@gmail.com> wrote:
> Hello,
>
> I am attempting to retrieve the value of the group_id attribute in the
> User table.
>
> I can see the value for User object within the debug output, and
> confirm that this value exists from the database.
>
> Other values, such as email, name can be retrieved just fine with
> $this->Auth->User->('email');
>
> however
> $this->Auth->User('group_id')
> refuses to return ANY value at all! :/
>
> Can anyone point out what I could be doing wrong ?
>
> Users and Groups are associated as in the tutorials.
>
> User belongsTo Group
> Group hasMany Users.
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
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 cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment