I engaged my brain and solved this:
$this->Session->write('Auth.User.role', $role);
Jeremy Burns
[email protected]
(Skype) +44 208 123 3822 (jeremy_burns)
(m) +44 7973 481949
(h) +44 208 530 7573
On 8 Apr 2010, at 12:30, Jeremy Burns wrote:
> Everything I have read about the Auth component uses a 'role' column
> in the users table. I want to store a role_id and have a related
> 'roles' table instead. Is it possible to store the value in the 'name'
> column of the roles table in the Auth->User variable so that I can
> retrieve it via $this->Auth->user('role')?
>
> 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
>
> To unsubscribe, reply using "remove me" as the subject.
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