View Full Version : Architect 2 controller confusion

20 Apr 2012, 4:49 PM
Looks like every time I add a new controller to the project, it is automatically added to the controllers config section of the app. Additionally each of the controller's init and launch functions will be called.

Is there a way to empty the controllers config section of the app object? The reason I want to do this is, I want more control over loading of the controllers. I would like to create an instance of a mainController in app.launch function and in its init/launch function, add views to view port etc. Additional controllers will be created as necessary. I want to control the addition and removal of views in the controllers and have control over doing that.

How can I achieve that?