I tested the solution, but I got everytime: Uncaught TypeError: Cannot read property 'Config' of undefined
My code was:
Code:
Ext.application({
controllers: [....],
models: [.....],
name: 'MyApp',
views: ['...'],
stores:['...'],
.....
launch: function() {
Ext.require('MyApp.util.Config');
........
Ext.Ajax.request({
url: MyApp.util.Config.getUrlLocalProxy() + '/',
....
}
The Config.js file is exactly an copy of the sample.
Code:
Ext.define('MyApp.util.Config', {
singleton : true,
config : {
urlLocalProxy: '127.0.0.1/utilityProxy.php'
},
constructor: function(config) {
this.initConfig(config);
this.callParent([config]);
}
});
Is there any else to do?
Thanks,
Daniel