Il giorno 04/dic/06, alle ore 18:05, Mariano Iglesias ha scritto: > > You shouldn't set models at the AppController level. > > From this post: > > http://groups-beta.google.com/group/cake-php/browse_thread/thread/ > df5e0b3a75 > d0202a > > Larry says: > > "You should not define the $uses var in your AppController. > > When you set the $uses var it should be done in child classes, and > only set > if you are not following naming conventions, or you need more then > one model > > in the controller. > > If you follow naming convention loading of models is automatic and > you do > not have to define the $uses var. Adding to your AppController sets > the same > > $uses on all child classes." > > Also be aware of CakePHP 1.1.11.4064 regarding models: > > If you did something like this before 1.1.11.4064: > > $myModel =& new Model(); > > You now have to do: > > loadModel('Model'); > $myModel =& new Model();
got it, thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---