Search code examples
typo3typoscripttypo3-6.1.xtypo3-flowtypo3-extensions

How to render methodAction of another Controller inside an action


I'm using extbase, fluid system on typo3 to build a backend module. I Have a Controller "MainController" action called 'AddBoxes' and I have another Controller called BoxElementsController, and there is an action method called 'popupBoxAction'.

I want to render the output of the BoxElementsController->popupBoxAction in the MainController-AddBoxesAction();

so that I can assign the output to my view variable.

How can i achieve this in Typo3 6.1.

Thanks


Solution

  • Try to instantiate you controller in you action then call ControllerObject->initializeAction() before calling your desired action.