There is no need to use "var uses" in your Profile controller, when
the relatioship is setup correct.
Markus
On 25 Jun., 10:31, Paulos23 <paulitosthe...@gmail.com> wrote:
> Hello people,
> i am having an issue about profile id.I am using 2 models, User and
> Profile.After a successful login i activate 3 links about profile
> (create,view,edit) but when i use $user['Profile']['id'] in view,edit
> links i get a message "undefined user variable".In my Profile model i
> use var uses =array('User').Is there any alternative way to get the
> profile id even form the session?
>
> Thanks,
> Paulos N.
--~--~---------~--~----~------------~-------~--~----~
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