title: dynamically manage Ext.app.Application.controllers
body: <p>At the moment our team evaluate possibility of converting large corporate web-application (kind of a ERP system, 600+ unique screens) using ExtJS for the front end. The application was build on our open sourced <a href="https://github.com/do-/eludia">eludia</a> engine</p>
  
  <p>Our engine requires Model definition (it morphs database as you edit definition), have some kind of Controller
  (Content modules) and Presentation (Presentation modules with code that generates actual js+html mix)</p>
  
  <p>Like some people from <a href="http://www.sencha.com/forum/showthread.php?57198-How-to-interpret-Extjs-in-a-MVC-pattern">this</a> thread our team has a problem: </p>
  
  <p>We'd like to have Model and View in server side and just to send JSON-data to the front-end </p>
  
  <p>Currently eludia core developers(=my team, we maintain both this application and eludia) have done some steps toward morphing engine to use ExtJS as front end</p>
  
  <p>My team is considering:</p>
  
  <ul>
  <li>continue using old Content modules as server side code</li>
  <li>generating Model files for ExtJS on the fly using server-side Model definition,</li>
  <li>converting Presentation modules to client-side ExtJS view modules, and write client-side controllers for each screen
  But now there is one more problem: ExtJS requires to enumerate all controllers in Ext.app.Application
  Every time a person writes new/ converts a screen from old engine he should add it to this list</li>
  </ul>
  
  <p>Can Ext.app.Application.controllers ... be generated dynamically?</p>
  
  <p>Therefore these questions, ordered by fuzziness:</p>
  
  <ul>
  <li>Can you name any large enough (600+ screens, preferable open-sourced)  MVC/non MVC application which uses ExtJS as front-end ? </li>
  <li>Are we moving in the right way?</li>
  </ul>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I should try to narrow question</p>
  
  <p>One doesn't need to load all controllers at once during app startup?</p>
  
  <p>What I trying to say, maybe it is possible to load controllers in a more 'dynamic' approach:</p>
  
  <ul>
  <li>generate one controller js for opened screen</li>
  <li>append new ones to Ext.app.Application.controllers
  whenever user does something (clicks a link, button, etc.): when new screen is needed</li>
  </ul>