X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..refs/heads/master:/examples/restful/restful.html diff --git a/examples/restful/restful.html b/examples/restful/restful.html index 2f186d9c..c3013743 100644 --- a/examples/restful/restful.html +++ b/examples/restful/restful.html @@ -1,48 +1,24 @@ +
- -This example shows how to implement a RESTful Store. A Store is made RESTful by simply setting the new configuration-property restful: true -and plugging a suitable Ext.data.DataWriter into your Store. This example uses Ext.data.JsonWriter.
+This example shows how to implement a Store using a REST proxy.
Note that the js is not minified so it is readable. See restful.js
Take note of the requests being generated in Firebug as you interact with the Grid.
-The HttpProxy in this example points to a single url app.php/users. You may have to edit your web-server's configuration to allow the +
The Proxy in this example points to a single url app.php/users. You may have to edit your web-server's configuration to allow the php back-end to be executable. app.php implements a simple RESTful backend controller and simulates a database by storing records in the $_SESSION.
-
-var proxy = new Ext.data.HttpProxy({
- url: 'app.php/users'
-});
-
-
-