Ext.application.prototype.addController = function (name) {
var me = this;
var controller =
AM.getApplication().getController(name);
if (!controller)
{
controller = Ext.create(this.getModuleClassName(name,
‘controller‘), {
application: me,
id: name
});
this.controllers.add(controller);
if (me._initialized)
{
controller.doInit(me);
}
}
};
Extjs 4 如何动态加载 Controller,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/Christy-Zhou-Zhao/p/3747937.html