Yes, but, why is "uses" evil? The post simply says "dont use it", and
not explains why, or when it's adviseable to.

I presume,by the post title, that that's because it's slow. How slow?

dfcp

On 19 jan, 04:47, Walther <waltherl...@gmail.com> wrote:
> Never use $uses unless you really really really have too. See 
> here:http://www.pseudocoder.com/archives/2009/04/16/one-more-tip-for-speed...
>
> Rather use $this->loadModel or ClassRegistry::init
>
> On Jan 18, 12:34 pm, djogo <djogopat...@gmail.com> wrote:
>
> > Class usercontroller extends appcontroller
> > {
> >    Var $uses=array( 'Users','Projects');
>
> > }
>
> > Then you can use
>
> > $this->Project->find()
>
> > On 17 jan, 08:10, codef0rmer <amit.2006...@gmail.com> wrote:
>
> > > thx guys. Finally, it worked :)
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