Ext JS Premium Member
onLaunch() of a controller doesn't work when it was not declared in app.js
I am using "this.getController('myController')" in an action to dynamically load a controller which wasn't declared in app.js. So onLaunch() doesn't work.
Is there any way to do some initial work when the controller being instantiated?
I don't want to insert code in init() method to mess the generated code by designer. I didn't found any approaches in Designer2 to add additional functions for init() except adding some listeners. Be sure it's an issue for designer2. http://www.sencha.com/forum/showthre...n-a-controller
Coding them in such event like "afterrendered" is not quite a good idea, I think.
Where should I code for initialization things?
Touch Premium Member