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