> Am I missing something simplistic here? Yes, $this->Product (and $this->Product->User) are instances of your Model, not controller. While you could use requestAction to call the other controller, this is slow, and all data functionality like that really should be in your model anyway.
So, move the addFavorite() function into your User model, and keep the code that you already have. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
