I have a question about user's profile.In particular i have created
some elements the welcome.ctp and the login.ctp.When user isnt logged
in i show the login and if it is i show thw welcome.Until this point
all work perfect.Now in welcome.ctp i have some links about user's
profile (add,edit,view),and the issue i am facing is that i cant
figure out why i cant use $user['Profile']['id'].i know that in views
i have to do $this->set(compact('user')); but what about elements?
Apart from that i think it's better to get the user's profile id from
session but i don't know if it is possible....e.g $this->Auth->user
('username')['Profile']['id'] ---->Is right?
any help would be nice!
thx
--~--~---------~--~----~------------~-------~--~----~
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