I have few Extjs 4 MVC architecture questions and would be very grateful for some hints or examples.
How controllers are connected with their views? What is the pattern for the controller having a reference to its view?
Are controllers supposed to be global for the application instance? I have seen only examples showing the controllers being loaded by the application instance, but I have never seen a controller being a part of some sub-component. Does it mean that MVC does not apply to component classes? Example: I'd like to build a list search component that consists of a grid, a search criteria panel and few more controls/menus. MVC would be quite useful for implementing the internal logic of that control, but extjs API suggests that this is not a supported scenario.
There's a nice dynamic loading feature in Extjs 4 (Ext.require). But is it supposed to work somehow with the MVC architecture? Is dynamic loading of views and controllers supported? As in previous question, I have seen only examples where all controllers, models and views are loaded upfront on application startup. I'm thinking about loading a view on user's action and the name of that view is known only after the user completes the action - how to go about loading that view, what about its controller?
best regards RG