I seem to have found a bug in the program.
I have a project with two controllers and three views.
The main viewport is created automatically (autoCreateViewport property is true).
I want only two of these views are loaded when the application starts and I want the third view is loaded only when is loaded the second controller.
In fact, the second controller references correctly the third view and it is only referenced by this controller and no any other objects.
Nevertheless, when the application starts, while the second controller correctly is not loaded, the third view is loaded anyway.
The problem for me lies in the file "Viewport.js" that is automatically created by the program:
As you can see, in my opinion, the error is that the file is created including all the views in the project in the "requires" property, regardless of whether or not the views are to be obtained later, according to various settings of the project.
In my case, View3 should not be included in the list.
I think it would be appropriate to correct the creation and editing of the file "Viewport.js."
In my opinion this is because the file "Viewport.js" (file automatically generated by Architect) the viewport referencing all three views regardless the settings in the project:
* File: app/view/Viewport.js
* This file was generated by Sencha Architect version 2.1.0.
* This file requires use of the Ext JS 4.1.x library, under independent license.
* License of Sencha Architect does not include license for Ext JS 4.1.x. For more
* details see http://www.sencha.com/license or contact firstname.lastname@example.org.
* This file will be auto-generated each and everytime you save your project.
* Do NOT hand edit this file.
In fact in my project I have just adopted this solution, removing unwanted items from the property "requires" from my own copy of Viewport and I verified that it prevents premature and unwanted loading of the views.
So, for me the solution is the right one.