Hi All,

This seems like a real n00b question, but here goes. I'm working on an
app which has articles - in my case news - and users who create/modify
the news articles. Now I found this nifty little behaviour -
http://blog.loadsys.com/2008/05/02/automagically-setting-user-id-of-record-creator-and-modifier-in-cakephp-12/
- which automagically records the user id in the news record when
somebody adds or edits a news item. So I've got the user id of the
creator/modifier in the news article record... lovely.

So, how then do I use that id in the creator/modifer to grab say the
name/email/username of the user and echo it out in a view? At first I
was thinking it would be a relationship, but now I'm thinking I need
to do something in the news controller?

If anyone could point me in the right direct that would be much
appreciated. Any examples would be helpful.

TIA.

--~--~---------~--~----~------------~-------~--~----~
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