[TYPO3-mvc] Get childs

Felix Eggbert eggbert at phez.com
Mon Jan 24 14:27:56 CET 2011


Hi Franz,

Can't believe it...that's it...of course it is... obviously had "tomatoes on
my eyes"...thanks for helping me getting rid of them! :-D ...I think I
should get off of the computer now and do something else...I am getting
confused here...

regards,

Felix



-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Franz Koch
Gesendet: Montag, 24. Januar 2011 13:56
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: Re: [TYPO3-mvc] Get childs

Hey,

> I've also implemented a getter in my model that calls this repository
> function:
>
> public function getChildren() {
>      $categoryRepository =
> t3lib_div::makeInstance('Tx_MyExt_Domain_Repository_CategoryRepository');
>      $children = $categoryRepository->findAllChildren($this);
>      return clone $children;
>    }
>
> But how can I access this getter from Fluid?

Are you looking for something like this:?

<f:for each="{category.children}" as="childCategory">
	{childCategory.name}
</f:for>


-- 
kind regards,
Franz Koch
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list