Another huge advantage of the new
Ext.data.Model class is that it is capable of saving and loading its own data without having to be attached to a data store.
This means that we can create new data objects anywhere within our code and easily send them to the defined URL to be saved by the server. This results in much less code and duplication, which is always a good thing!
This recipe will show this piece of functionality in action, building on our Book model that was used in previous recipe.
This recipe requires a running web server. There are four PHP files (which are supplied) that will be used for loading data into our Model.