[TYPO3-mvc] Calling different object/repository inside fluid
Felix Oertel
mehl at foertel.com
Wed May 5 13:51:26 CEST 2010
Hey
Am 05.05.10 13:17, schrieb Søren Malling:
> Example:
> <inspector>##THIS SHOULD BE THE NAME OF THE INSPECTOR###</inspector>
If that is not descriptive, what is? *g*
> But right now it's outputting the uid of the reference, because that
> is the data i got in my repository for that field.
Did you map that relation in your model?
> In my controller i got the following code
> $this->view->assign('clubs', $this->clubRepository->findAll());
> $this->view->assign('members', $this->memberRepository->findAll());
I don't get what you try to do. ;-) The usual way would be to map the
members in your clubs model.
@var Tx_Extbase_Persistence_ObjectStorage<Tx_YourExt_Domain_Model_Member>
$memnbers;
plus get() and set(). The members get mapped by extbase and in fluid you
can use them with
for {club.members} as {member}
and don't have to assign plain members at all.
Or did I missunderstand you?
regards, foertel
More information about the TYPO3-project-typo3v4mvc
mailing list