View Full Version : Ext.Loader autoloading issue

27 Apr 2012, 2:27 AM

I am running into trouble with Ext.Loader. In my app.js, I define the Ext.Loader config and my application:

enabled: true
Ext.Loader.setPath('kkCms', 'js/app');

name: 'kkCms',
autoCreateViewport: false,
controllers: [

launch: function() {
console.log('launch: kkCms');

Unfortunately, the autoloader seems to ignore my Ext.Loader settings. If i run the application, it looks for Login.js in app/controller/Login.js, although I defined another path for this namespace.

On the other side, when I load the controller with Ext.require before the application launches..


.. the app looks for Login.js at the right place (js/app/controller/Login.js)

Personally, I thought the sense and purpose of Ext.Loader's autoloading functionality is to be lazy with Ext.require, as I think it is not really nice to require every single view, model, store and controller you need in your app, or is it?

Thanks for your help.

27 Apr 2012, 5:28 AM
Loader is awesome.

change your code to:

enabled: true,
paths : {
kkCms : 'js/app'

See if that fixes it.