In order to use the model relationships, you first must set them up. In the definition of the Event model, how does it relate to the User model?
Cheers
On Monday, July 2, 2012 11:09:29 AM UTC+2, Francesco Pantisano wrote:
Hi,--
i have installend a plugin on cakephp2,
but now i want to see a list of user.
the model name of my Plugin is: Event
the model name of my User Class is: User
i try to set in the plugin: $idusers = $this->Event->User->find('all');
but they don't take me a user list.. i think that the problem is that i call a class in the plugin..
some can help me?
thank
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
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
No comments:
Post a Comment