This example shows how to implement a Writer for your Store.
Note that the js is not minified so it is readable. See writer.js, UserForm.js and UserGrid.js.
The HttpProxy plugged into the store in this example uses the new api configuration instead of an url. Since we can't run server-side code in these examples, the api here points to static json files which represent simulated CRUD responses from the server.
Take note of the requests being generated in Firebug as you interact with the Grid and Form.
var proxy = new Ext.data.HttpProxy({
prettyUrls: false, // <-- prettyUrls for urls of the form /user/update/1 or /user/destroy/32
api: {
load : 'remote/load.json',
create : 'remote/create.json',
save: 'remote/update.json',
destroy: 'remote/destroy.json'
}
});