What I understand from the manual is that if the model you need to access is associated with the current controller's model, you don't need to add it to $uses. Also that you don't need to add the current controller's model to $uses unless you have added another model, in which case it becomes necessary to add the current controller's model. It seems that Geoff is saying not to add anything to $uses unless it required on each and every action for the controller. Otherwise you will slow down actions that don't require it.
On Dec 19, 11:22 pm, Geoff Douglas <drdouglas...@gmail.com> wrote: > Just to add to the conversation... > > You have to ask yourself, "when do I need this model?" > > If you are going to need it in every web request, then stick it in the > $uses property. > > If you only going to use it in one method, then register it on the fly. > That way, your not bogging down every other request. > > Remember every web request is unique, and you are firing up all those > models every time. Which ones are you actually using and when? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php