[TYPO3-mvc] Get childs
Franz Koch
typo3.RemoveForMessage at elements-net.de
Mon Jan 24 13:55:43 CET 2011
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
More information about the TYPO3-project-typo3v4mvc
mailing list