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 <[email protected]> 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 [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