Yeah.I use User hasOne Profile and in the other side Profile belongsTo
User.Dunno what is going on.

2009/6/25 Braindead <[email protected]>

>
> Did you set up the relationship between User and Profile properly?
> 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 <[email protected]> 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 [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