X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/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 @@ + - -RESTful Store Example - - - - - - - - - - - - - + + Rest Proxy 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.

+

Rest Proxy Example

+

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'
-});
-
-
-
-
-
- - + \ No newline at end of file