Ext.define('App.store', {
extend: 'Ext.data.Store',
model: 'App.model',
sorters: [{
property: 'date_start',
direction: 'ASC'
}],
remoteSort: true,
autoLoad: true,
proxy: {
type: 'ajax',
url: 'cl.php',
reader: {
type: 'json',
root: 'pens',
totalProperty: 'total',
successProperty: 'success',
idProperty: 'id'
},
*!*
listeners: {
exception: function (proxy, response, operation, eOpts) {
if (window.console && console.log)
console.log("Proxy.Exception (%o)", arguments);
}
}
*/!*
}
});
???