PDA

View Full Version : Where Do Overrides Go In MVC Style Applications?



rkanemeier
7 Oct 2013, 7:31 AM
I am attempting to migrate an app with overrides over to the MVC method of development. I have a few overrides for my app (cellediting, numbercolumn, etc). Where do those overrides go? In the controller or the view that contains the components being overridden?

existdissolve
7 Oct 2013, 5:27 PM
I am attempting to migrate an app with overrides over to the MVC method of development. I have a few overrides for my app (cellediting, numbercolumn, etc). Where do those overrides go? In the controller or the view that contains the components being overridden?

If you generate an app via Sencha CMD, you'll notice that an overrides folder gets created in your root directory. You could use this. You could also create your own overrides folder elsewhere, and use Loader to include those in your application.

I like to use the overrides folder, and then I package my overrides to match the class hierachy.