Monday, December 19, 2011

best use of var $uses in a controller

Is there ever a time when it is considered best practices to use var
$uses for access to a model from a controller. The cakephp manual
seems to say to use $this->Model->AssociatedModel when there is an
association and $this->loadModel('UnassociatedModel') when there
isn't. Does var $uses not appear in well written code?

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate