
Originally Posted by
shepsii
I think the right way to do this is events using the application object as the bus, because then only an event name is shared and controllers do not need to know the exact name of methods on other controllers - or even depend on the existence of the other controllers. So this is how I do it. Would be nice for the application object to then be targetable in the control section of the controller config tho.
Events are one way and a valid way, you can do it in init
Code:
init : function(app) {
var me = this;
app.on({
scope : me,
someevent : me.someFunc
});
}
The issue with events is they can affect performance if you are going to use them a lot. If you have an abstract controller this performance is not an issue as the methods are on the prototype of all subclasses