Sunday, September 28, 2008

Saving user id into ingredients model

Hi guys I have a ingredient model which has a belongsTo relation to
the user model. No I have a view with an input field for the name of
an Ingredient. I want to add the user id of the logged in user to the
table of the ingredient. I use the Auth for user login. How can I do
this?

I can't find any info in the cookbook and google. Should be quite
simple for the experienced user, I just got started.

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