[TYPO3-mvc] Re: itemsProcFunc inject

Bastian Zagar zagar at aixdesign.net
Fri Jul 19 11:46:35 CEST 2013


Ok, i think i got it.

In controller __construct() i load the object manager
$this->objectManager 	= \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance("TYPO3\\CMS\\Extbase\\Object\\ObjectManager");

and after this call i create the other instances that i need with the object manager, 
so the other injects are called

$this->model = $this->objectManager->get("Bla\\Blubb\\My\\Model");

correct me, if this is the wrong way. :)


More information about the TYPO3-project-typo3v4mvc mailing list