X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/examples/restful/restful.html diff --git a/examples/restful/restful.html b/examples/restful/restful.html new file mode 100644 index 00000000..2f186d9c --- /dev/null +++ b/examples/restful/restful.html @@ -0,0 +1,48 @@ + + + +RESTful Store Example + + + + + + + + + + + + + + + + + + + + + + +

RESTful Store Example

+

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.

+ +

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 +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'
+});
+
+
+
+
+
+ + +