Hi everyone. I compiled my project via sencha cmd 3.0.0.230. After compile i navigate to http://meprojectlocalhost.com, but my project not rendering and console of browser displays following errors:
Code:
- Uncaught Error: [Ext.Loader] Failed loading 'MyApp/model/MyModel1.js', please verify that the file exists all-classes.js:10092
- Uncaught Error: [Ext.Loader] Failed loading 'MyApp/store/MyStore1.js', please verify that the file exists
and etc. on all my models and stores. Please note what next address http://myprojectlocalhost.com/MyApp/model/MyModel1.js?_dc=1357902265764
where MyApp is namespace my project (ie example MyApp.model.Model1)
All models and stores in file all-classes.js is. Below code my app.js in all-classes.js/
PHP Code:
Ext.Loader.setConfig({ enabled: false, paths: { 'Ext': 'js/extjs4/src', 'Ext.ux': 'js/extjs4/ux', 'MyApp': '/js/gisjs' }});
Ext.require('Ext.layout.*');Ext.require('MyApp.controller.*');Ext.require('MyApp.store.*');Ext.require('MyApp.model.*');
Ext.application({ name: 'MyApp', appFolder: '/app', controllers: ['MyController'], autoCreateViewport: false, launch: function() { var access = this.getController('Main').accsesData; Ext.create('MyApp.view.Viewport', { access: access }); Ext.QuickTips.init(); }});
I tried comment out setConfig and Ext.require, but failure. Once i remove stores from my controller errors disappear. Version of the ExtJS is 4.1.1a.