Skip to content

Instantly share code, notes, and snippets.

@dupuchba
Created May 18, 2012 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dupuchba/2726560 to your computer and use it in GitHub Desktop.
Save dupuchba/2726560 to your computer and use it in GitHub Desktop.
Backbone.js : model creation RESTFul
//Model Backbone.js sur les Customer
window.Customer = Backbone.Model.extend();
window.Customer = Backbone.Collection.extend({
model:Customer,
url:"http://localhost:8888/PiggiBox/web/app_dev.php/customer/search.json"
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment