Extjs4.0.7 MVC Architecture异常

时间:2023-05-29 15:26:44

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

解决方法:

在app.js最上面加上:Ext.Loader.setConfig({ enabled: true });

Ext.Loader.setConfig({ enabled: true });
Ext.application({
name: 'AM', appFolder: 'app', launch: function(){
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [
{
xtype: 'panel',
title: '用户',
html: '<font color=blue>用户列表</font>'
}
]
});
}, controllers: [
'Users'
] });