[TYPO3-mvc] Calling different object/repository inside fluid
Søren Malling
soren.malling at gmail.com
Wed May 5 13:17:36 CEST 2010
Hi,
I'm building XML output with fluid. In a object i got some references
to another table/domain (frontend user) and I will need the name field
from that model.
Example:
<inspector>##THIS SHOULD BE THE NAME OF THE INSPECTOR###</inspector>
But right now it's outputting the uid of the reference, because that
is the data i got in my repository for that field.
In my controller i got the following code
$this->view->assign('clubs', $this->clubRepository->findAll());
$this->view->assign('members', $this->memberRepository->findAll());
Is it possible to access a unique object in the members object (like
findByUid(UID))? Or should I move the for-loop out in to the
controller and not have it in the fluid template?
Regards,
Søren
--
Officially Certified TYPO3 Integrator
More information about the TYPO3-project-typo3v4mvc
mailing list