Skip to content

Instantly share code, notes, and snippets.

@tonysm
Created July 13, 2012 13:57
Show Gist options
  • Save tonysm/3105016 to your computer and use it in GitHub Desktop.
Save tonysm/3105016 to your computer and use it in GitHub Desktop.
Example of extjs store
Ext.define('MyApp.store.Users', {
extend: 'Ext.data.Store',
requires: ['MyApp.model.User'],
model: 'MyApp.model.User',
storeId: 'Users',
autoLoad: true,
proxy: {
type: 'ajax',
url: 'php/users/index.json',
reader: {
type:'json',
root: 'users'
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment