I see. No really, no particular reason. I just like the model autoloading feature in 2.x. I'm a bit lazy and don't like to manually loadModel()... heheh
Regards 2014-03-13 23:45 GMT+01:00 José Lorenzo <jose....@gmail.com>: > $uses was not actually offering much. Is there a particular reason you > wanted to keep it? > > > On Thursday, March 13, 2014 9:51:14 PM UTC+1, Christopher Castro wrote: > >> Yes I know... nothing new, similar to old versions of cake. >> >> Is there any reason about removing Controller::$uses ? >> because I dont see the point. Moreover, app-template >> (PagesController::$uses) and 3.0-book still mention it. >> >> >> 2014-03-13 21:33 GMT+01:00 Thomas von Hassel <dar...@gmail.com>: >> >>> No, a PostsController will try to load a table class called PostsTable >>> automagically >>> >>> /thomas >>> >>> >>> >>> On 13 Mar 2014, at 21:29, Christopher Castro <ch...@quickapps.es> wrote: >>> >>> Hi, >>> >>> I'm taking a look to the new ORM, and I've noticed there is no longer >>> Controller::$uses. >>> we have to use loadModel() instead? No more model autoloading? :( >>> >>> Great work btw >>> >>> >>> 2014-03-13 16:11 GMT+01:00 José Lorenzo <jose...@gmail.com>: >>> >>>> Sorry, I made a mistake in my previous paste, This is a new version >>>> http://bin.cakephp.org/saved/120567 >>>> >>>> There was another thread with the same topic here in the group, you may >>>> want to check it to know how it is supposed to work if you create your >>>> Entity class. >>>> >>>> >>>> On Thursday, March 13, 2014 4:09:36 PM UTC+1, José Lorenzo wrote: >>>>> >>>>> Yeah, you need an entity class or do the following: >>>>> >>>>> http://bin.cakephp.org/saved/120566 >>>>> >>>>> Check the modified lines in the add() method. This is just a >>>>> workaround if you don't want a custom entity. We hope to make this easier >>>>> and more clear in the future. >>>>> >>>>> On Thursday, March 13, 2014 4:03:08 PM UTC+1, André Luis wrote: >>>>>> >>>>>> My Controller: http://bin.cakephp.org/saved/120565 >>>>>> I didnt create any entity yet, but the index and view are working >>>>>> very well. >>>>>> >>>>> >>>> -- >>>> Like Us on FaceBook https://www.facebook.com/CakePHP >>>> Find us on Twitter http://twitter.com/CakePHP >>>> >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "CakePHP" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to cake-php+u...@googlegroups.com. >>>> To post to this group, send email to cake...@googlegroups.com. >>>> >>>> Visit this group at http://groups.google.com/group/cake-php. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> Christopher Castro. >>> Analista Programador Senior PHP/MySQL >>> Pamplona, España >>> QuickApps CMS <http://www.quickappscms.org/> >>> >>> >>> -- >>> Like Us on FaceBook https://www.facebook.com/CakePHP >>> Find us on Twitter http://twitter.com/CakePHP >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "CakePHP" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to cake-php+u...@googlegroups.com. >>> To post to this group, send email to cake...@googlegroups.com. >>> >>> Visit this group at http://groups.google.com/group/cake-php. >>> For more options, visit https://groups.google.com/d/optout. >>> >>> >>> -- >>> Like Us on FaceBook https://www.facebook.com/CakePHP >>> Find us on Twitter http://twitter.com/CakePHP >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "CakePHP" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to cake-php+u...@googlegroups.com. >>> To post to this group, send email to cake...@googlegroups.com. >>> >>> Visit this group at http://groups.google.com/group/cake-php. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Christopher Castro. >> Analista Programador Senior PHP/MySQL >> Pamplona, España >> QuickApps CMS <http://www.quickappscms.org> >> >> -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/d/optout. > -- Christopher Castro. Analista Programador Senior PHP/MySQL Pamplona, España QuickApps CMS <http://www.quickappscms.org> -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.