[TYPO3-mvc] Problem calling a repository function
Bastian Waidelich
bastian at typo3.org
Mon Jan 31 12:36:26 CET 2011
Raymund Tump wrote:
Hi Raymund,
> I can't get the objectManager in a render function of a view helper? [...]
> $projectRepository = $this->objectManager->get('Tx_UtekReferenzen_Domain_Repository_ProjectRepository');
> Gives an exception that I try to call a member function on a
> non-object.
Have a look at
<http://forge.typo3.org/projects/typo3v4-mvc/wiki/Dependency_Injection_%28DI%29#Creating-Prototype-Objects-through-the-Object-Manager>
Best,
Bastian
More information about the TYPO3-project-typo3v4mvc
mailing list