-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Request for demos with PHP & MySql stack #114
Comments
Would it be okay if this was done with Zend? |
ok I guess. I just want to see how to collect and parse a put and delete request from a normal form via backbone. What I want to see is:
Would love to see these topics covered in your work on backbone. People like are me are still trying to shift from our old ways of ajax requests and non-rest based servers to this new world. These answers will help us make the transition. |
We potentially could use this as a starting point: https://github.com/addyosmani/php-backbone-todos. It's based on the same Todo application my TodoMVC project and some of the rest of the book is. What's missing at the moment are proper sync, demonstrate of emulateHTTP off/on. With respect to the last point you mention (what to do when parsing), could you be a little clearer? Typically when you're done parsing the data for a model/collection, you just return the portion of the object requested (e.g JSON response) you're going to work with. As with how this would work with put and delete, in my opinion this doesn't really change from how you would handle it in a Backbone-less application (i.e maybe put and delete requests just return a validation message from your backend saying whether the request has correctly gone through or not). |
Addy, The github project you point to is using the slim server that's rest-based. Although this could no doubt be interesting, a far more urgent case is people working with CMSs like wordpress and expressionengine who are tasked with creating custom front-end applications with the data in the CMS database. So showing us how to do data modeling within the constraints of a vanilla PHP and MySql setup would be great. You do attempt to show this in your earlier photogallery tut on backbone and friends but the server code there doesn't seem to be production quality and it's also quite confusing. As for the last point about parsing, please ignore it - you seem to have clarified it in your reply. |
Based on the feedback on the book so far, the indications are that most people would like less of a focus on the restful apps side of things and more clarity on using Backbone.js itself. With that in mind, I may consider scaling back that part of the book or moving it into a later project. |
Hey addy,
Would do people working with CMSs like me a lot of good if you could show us how to use backbone with a non-rest based server
The text was updated successfully, but these errors were encountered: