Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8928377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:25:30+00:00 2026-06-15T08:25:30+00:00

I have a big app so I didn’t add things in my app.js: stores:

  • 0

I have a big app so I didn’t add things in my app.js:

stores: []
controllers: []
views: []
models: []

Inside those are only things that I need for application to be created. So, when I click on the node (left panel) how can I create the controller I need and load model, view, store and other things in that controller? Is it enough just to call controller (because they are imported in controller)?

Something like

Ext.create('MyApp.path.SomeController');

Would it be added just like if I would add it in controllers: [] in app.js?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:25:31+00:00Added an answer on June 15, 2026 at 8:25 am

    My code is very similar to that of Jenson.

    // This function loads a controller dynamically and returns its first view
    // Note: We don't call onLaunch(this) here. This method might be called during 
    // bootstrap (like if there's a cookie with the recent page), after which 
    // the application itself will call onLaunch (once out of the Launch method).
    // The other issue is that the view is not added when this method is called
    // and we might need to reference the view withing onLaunch, so this is the
    // wrong place to call on Launch). Currently we're not relying on onLounch 
    // with controllers.
    dynamicallyLoadController: function( aControllerName )
    {
        // See if the controller was already loaded
        var iController = this.controllers.get(aControllerName);
    
        // If the controller was never loaded before
        if ( !iController )
        {    
            // Dynamically load the controller
            var iController = this.getController(aControllerName);
    
            // Manually initialise it
            iController.init();
        }
    
        return iController;
    },
    
    loadPage: function( aControllerName )
    {
        // save recent page in a controller
        Ext.util.Cookies.set( 'RecentPage', aControllerName );
    
        var iController   = this.dynamicallyLoadController( aControllerName ),
            iPage         = iController.view,
            iContentPanel = this.getContentPanel(),
            iPageIndex    = Ext.Array.indexOf(iContentPanel.items, iPage);
    
        // If the page was not added to the panel, add it.
        if ( iPageIndex == -1 )
            iContentPanel.add( iPage );
    
        // Select the current active page
        iContentPanel.getLayout().setActiveItem( iPage );
    },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web app that has a big and complex form (fields, checks,
We have a test case that crashes our big MFC-based app with a heap
I have big problem when I am trying to deploy my app over clickonce.
I have a big problem with my app as it crashes often but never
I have finished developing a big and heavy app. It is universal (for iPhone
I have two QT apps. One app can be considered to hold a big
I have big system that make my system crash hard. When I boot up,
I have big element at the top of the webpage that sides down with
We have 2 big applications ready for app store submission but they were created
I have a big UIimage (2000x2000). Image drawed every time on app start, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.