You have to do it by hands, using find() and beforeAction() on some actions where you need profile info. Auth doesn't get related data.
On 11 мар, 05:47, "Dave Maharaj :: WidePixels.com" <d...@widepixels.com> wrote: > Does anyone know how to get user variables from the Auth from a different > Table? > > [Auth] => Array > > ( > > [User] => Array > > ( > > [id] => 6 > > [username] => mary > > [email] => > > [group_id] => 4 > > [created] => 2009-03-10 14:29:45 > > [modified] => 2009-03-10 14:29:45 > > [last_login] => 2009-03-10 > > ) > > ) > > For example here Mary is User ID 6 she belongs to Group 4 which in this case > is a TEACHER so she has a TEACHER profile which has an ID of 3. How can I > take the Auth id 6 to find her Teacher ID in the TEACHER TABLE? > Thanks > Dave --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---