I wanted to see how you all handle this. In our Ext.application file we have our, models, stores and controllers config arrays defined with all the models, stores in controllers in our application. Only thing is we have so many that its really unruly to keep defining each one in this file its just becoming to bloated.
Does anyone have any recommendation on how to handle such an issue. We though about just make a javascript file the just define our arrays. Then just including each array in the config object as follows:
Ext.application({
models : MyApp.util.getModelsArray(),
controllers: MyApp.util.getControllersArray(),
stores: MyApp.util.getStoresArray()
})
Is there a better way, or is what a proposed above good?