Results 1 to 2 of 2

Thread: MVC Store reference from a different Controller

  1. #1
    Sencha Premium User
    Join Date
    Apr 2011
    Posts
    126
    Answers
    1

    Default MVC Store reference from a different Controller

    I am using ExtJS 4.2.1. I have many Controllers each having the appropriate Models, Stores and Views defined within them. What is the proper way to get a reference to a Store that is defined in a different Controller? Can a store be defined in more than one Controller? This is how I have done it so far but it does not seem correct.

    Thank you
    Rudy

  2. #2
    Sencha Premium User varsos's Avatar
    Join Date
    Feb 2008
    Location
    Long Island, NY
    Posts
    367
    Answers
    6

    Default

    I believe controllers create a single instance of a store and register it with StoreMgr, then always return that same one, and even other controllers setup with the same store will return the same instance.
    varsos

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •