I have ExtJS (4.2) app, and I have a modal window with some logic. I want to split up logic by several controllers. For example, I have controller A where I added controls for close window and so on, and inside this window I also have another logic for example some form, with own buttons for save and edit. And for form I want to add new controller but I don't know is it good or bad ?, and when I should init controller for form ?
Thanks.
Abstract application
Modal Window (has close button, and some other controls)
- Items Box
- Item (has own controls)
For Modal Window there is Controller
Item this is xtype which is added dynamically
I want have two controllers, one for modal window (parent) and one for Item (child). And I don't know how better to init second controller from parent.