title: Syncing Backbone/Spine application to a database
body: <p>I have just about got my head around how JavaScript frameworks like Backbone.js and Spine.js deals with the client-side state of a data model in regards to updating views etc. I am looking to build a web application with Backbone that syncs its model with a database. Most of the examples out there use Ruby, but I am currently much more comfortable writing PHP. I have experience with MySQL and MongoDB.</p>
  
  <p>I am looking for a very basic, stripped down version, of a RESTful web application that uses Backbone and syncs with a database through PHP. I have found tutorials like <a href="http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-1-getting-started/" rel="nofollow">this one</a> and <a href="http://cambridgesoftware.co.uk/blog/item/59-backbonejs-%20-php-with-silex-microframework-%20-mysql/" rel="nofollow">this one</a>, however, even these are too complex for me to learn from.</p>
  
  <p>It would be nice to have a <em>very</em> basic example. For example, a HTML form input, and a list. Enter into the input to add to the list. Of course, this data model will be synced to a database (preferably MySQL). Would anyone be able to provide me with the code for this example? I am comfortable with using a PHP framework like Slim also.</p>
  
  <p>Once I understand how to sync created data to a database, I can then begin to grasp the rest (CRUD). I have seen very few tutorials out there on how to this at a basic level with PHP, so hopefully any support will benefit others too.</p>