X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..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