I think that instead of partials/phone-list.html
you should use *phone_list_controller* / *action_for_phone_list* and you should create phone_list.ctp view Something similar should be done for partials/phone-detail.html luni, 10 februarie 2014, 20:25:17 UTC+2, advantage+ a scris: > > Looking deeper into updating a site to use Angular.js but first thing I > noticed was looking at the demo here http://docs.angularjs.org/tutorial that > in the app.js it references using html partials (element in Cake > terms): > > > > phonecatApp.config*([*'$routeProvider', > > *function(*$routeProvider*) {* > > $routeProvider. > > when*(*'/phones', *{* > > templateUrl: 'partials/phone-list.html', > > controller: 'PhoneListCtrl' > > *})*. > > when*(*'/phones/:phoneId', *{* > > templateUrl: 'partials/phone-detail.html', > > controller: 'PhoneDetailCtrl' > > *})*. > > otherwise*({* > > redirectTo: '/phones' > > *})*; > > *}])*; > > > > Is there a way to use Cakes elements instead? > > > > > > > > Seems like having an element to show each record then when added / > modified the exact same code in html format rather than .ctp is just wrong. > > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
