Hi,

It seems that the controller is not Users controller but anything else. Am I
right?

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Sat, Nov 13, 2010 at 12:54 AM, naidim <nai...@gmail.com> wrote:

> I don't understand. Without the var $uses = array('User', 'Drug',
> etc.) line, calls to $this->User->find() give this error: Fatal error:
> Call to undefined method stdClass::find() With the uses line, it works
> fine.
>
> On Nov 12, 11:13 am, Shaz <shazam...@gmail.com> wrote:
> > It's better practice to use model relationships rather than $uses.
> > i.e. $this->User->Drug->find();
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to