For the moment, when I’m in a controller and that I want to call a function from another controller, I do this :
App.app.getControllerInstances()['App.controller.OtherController'].do_something();
Is seems a bit heavy to me, is there another (better) way to do this ?
Thanks
I would use the getController method: http://docs.sencha.com/touch/2-0/#!/api/Ext.app.Application-method-getController
EG:
this.getApplication().getController('ControllerName').doSomething();