View Full Version : [FIXED] - launch in controller

13 Mar 2012, 4:44 AM
What is the purpose of having 'launch' menuitem in dropdown when viewing controller code because if I write there code it is not executed and I should add Basic Function with the name 'onLaunch' to run my code.
Also when I add 'onLaunch' function to controller I get red exclamation mark to the right of the function in project inspector saying: 'This function is overriding a member', but here (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.app.Controller-method-onLaunch) is it said that 'Feel free to override it in child classes'.

13 Mar 2012, 11:12 AM
The code in your launch method should be executed.

14 Mar 2012, 1:56 AM
You can easily recreate the issue: start new Ext JS 4 project, define settings, dragndrop controller, switch to code, select launch from dropdown, write console.log('MyController launch'), save, deploy and run in browser: I have no message in firebug...

3 Apr 2012, 4:52 PM
Sencha Touch and Ext JS will now show the appropriate launch or onLaunch method to be added on the Controller.