Reputation: 2981
I am new to ExtJS (4.1) and now I am trying to make an MVC application work, but there seems to be a bug somewhere. Here is my app.js
:
Ext.Loader.setConfig({enabled:true});
console.log("out");
Ext.application({
name: 'FI',
controllers:['ListController'],
launch: function() {
console.log("launch");
}
});
and this is the ListController
:
Ext.define('Fi.controller.ListController', {
extend: 'Ext.app.Controller',
id: 'installBaseListController',
init: function() {
console.log("init");
}
});
All the needed js files are loaded properly and no errors are displayed in the console.
However, the only message displayed is "out"
, meaning that the controller does not get instantiated and the applicationa itself doesn't start. Why?
Upvotes: 2
Views: 3086
Reputation: 16236
For future reference:
It also happens when you get any of the related files/classes Ext.define('Xxx.xxx.Xxxx') spelling wrong (case senstive)
Or, any of the launch / init/ initComponent functions spelling wrong (case senstive).
Upvotes: 1
Reputation: 19347
The application is named 'FI'
(capital I
) but the controller is on Fi
(lowercase i
)!
Upvotes: 2