I am thinking of using backbone.js framework with Yii,specially for CRUD purposes.I don’t want to lose all the benefits that the GridView or ListView provide,yet I am a little confused on how to use them as BackBone.View ,since they are coupled with their own javascript . I have to override the default yii javascript of these widgets in Backbone.sync which takes care of synchronizing data with the server,and I don’t know how.I will appreciate any help from Yii ninjas who have succeeded in using backbone.js wth Yii.Thanks in advance …
I am wondering if anyone has thoughts or links to articles about when to use javascript mvc to handle page data and state, vs when to rely on server-side code (ie php) for templating and server requests.
Backbone is great, but it takes some time to setup and configure, including the REST API. So I would use it only when the application gets really complex, otherwise I’d use widgets + custom JS.