i have defined my proxy subclass using Ext.define and then referenced it in my Model by including my custom type in the proxy config:
Ext.define('MyApp.model.MyModel', {
extend : 'Ext.data.Model',
fields : ['first','last'],
proxy : {
type : 'customProxy'
}
}
when ExtJS tries to load the proxy class it looks for 'proxy/cusomProxy' instead of 'app/proxy/customProxy' the way i would expect it to. shouldnt subclassed proxies be stored in an app.proxy folder?
(btw, why does the proxy use ‘type’ instead of ‘xtype’ to declare is class?)
I would suggest putting proxy configuration (not declaration!) into the store class. And you can just use something like: