[TYPO3-mvc] Partial template from other extensions
Sebastian Kurfürst
sebastian at typo3.org
Wed Apr 27 07:38:15 CEST 2011
Hey Arno,
> $templateController =
> t3lib_div::makeInstance($templateControllerClassName);
You should use the Object Manager here (Object Manager Interface), and
call the "create()" method on it.
Then you do not need:
> $templateController->injectConfigurationManager($this->configurationManager);
>
> $templateController->injectPropertyMapper($this->propertyMapper);
> $templateController->injectObjectManager($this->objectManager);
> $templateController->injectValidatorResolver($this->validatorResolver);
>
> $templateController->injectFlashMessageContainer($this->flashMessageContainer);
>
> $templateController->injectReflectionService($this->reflectionService);
>
> $templateController->injectMapBuilder($mapBuilder);
> $templateRequest =
> t3lib_div::makeInstance('Tx_Extbase_MVC_Web_Request');
Same here. Use the Object Manager :-)
> $templateRequest->setControllerObjectName($templateControllerClassName);
>
> $templateRequest->setControllerActionName($templateControllerActionName);
>
> $templateController->processRequest($templateRequest,
> $this->response);
Greets,
Sebastian
More information about the TYPO3-project-typo3v4mvc
mailing list