I have 2 controllers: 1 top level controller,MainController, and a SubController, which MainController has an instance of and controls. The SubController has a Subview which goes inside the MainView as some sub web element.
What is a good way to insert the SubView into MainView? I can think of:
I can give
SubControllerandSubViewa reference of theMainViewand append to it in theSubviewReturn the html from the
SubViewrendering function toSubController, which returns to it to theMainController->MainView->render
Or is there a much better way?