Both of the references $this->Product, or $this->Product->User  are to
models, not controllers.  If you defined addFavorite() as a function
in your User model, then your first line would work.

requestAction is used to get the result of a controller action.
getID() is an inbuilt model function - where are you calling this?
You can only use it inside a model, or through a model reference in
your controller (ie $this->Product->getID() ).


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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