PDA

View Full Version : MVC Application Architecture Example



nguyenc
27 Feb 2012, 4:31 PM
I followed the account_manager example in MVC Aplication Architecture (Sencha EXT JS 4.0 docs), and at the step of defining a controller (app/controller/Users.js) I got the following error from Firebug.

uncaught exception: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: AM.controller.Users

Am I missing something to load the required class?

Sorry... I am new to Ext JS.

Thanks.

vietits
27 Feb 2012, 4:40 PM
You should enable dynamic loading (which default is disable):


Ext.Loader.setConfig({
enabled: true
});

nguyenc
27 Feb 2012, 4:46 PM
Thanks so much, vietits!

Your suggestion works!