[TYPO3-mvc] View object not available in controller
Dirk Rauscher
dr_typo3 at itb-institut.de
Fri Jan 27 18:53:06 CET 2012
Hi members
I try to call the action of a controller to retrieve the rendered output
and to use it somwehere else. Put when the action tries to assign
multiple arguments to the view a fatal error occurs:
Fatal error: Call to a member function assignMultiple() on a non-object
This is how I call the function from a function class of my own which is
placed in EXT:MyExt/Classes/Utility
$invoiceCtrl = $this->objectManager->create('Tx_MyExt_Controller_MyCtrl');
$invoiceCtrl->doThisAction($argument);
Do I have to initialize the view object in the controller?
Dirk
More information about the TYPO3-project-typo3v4mvc
mailing list