Constantin My understanding is this;
Using $uses will load every listed model when that model is loaded, even if they are not used in particular action. Using Controller::loadModel('ModelNameYouWantToLoad'); will only load that model when that particular line is read. It is useful if you have one or two actions out of many in a controller that rely on outside models. Or if you only need that model for a rare occurrence nestled inside an else block. If every action is using the same five models than you shouldn't see any difference in performance. On Mar 22, 4:53 pm, Constantin Botnari <write...@gmail.com> wrote: > someone say that using $uses will slow your app :) and he suggests to > use Controller::loadModel('ModelNameYouWantToLoad'); --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---