1. #1
    Sencha User
    Join Date
    Feb 2009
    Posts
    41
    Vote Rating
    0
    LostInExtjs is on a distinguished road

      0  

    Default Unanswered: Onlaunch to be called before init in a controller

    Is it possible to call onLaunch before init in a controller ?

  2. #2
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Vote Rating
    26
    Answers
    106
    friend has a spectacular aura about friend has a spectacular aura about

      0  

    Default

    According to the documentation, this is the call order:

    Ext.app.Controller.init() is called before the Ext.app.Application.launch() function is executed, so it gives you a hook point to run any code prior to the Viewport being created.

    Ext.app.Controller.onLaunch() is called after the viewport is created and after the Ext.app.Application.launch() method is executed.

  3. #3
    Sencha User
    Join Date
    Feb 2009
    Posts
    41
    Vote Rating
    0
    LostInExtjs is on a distinguished road

      0  

    Default

    Thanks Friend...I was able to solve the problem without changing the order.
    It was a typo from my end that was causing the problem.

Thread Participants: 1