[TYPO3-mvc] How to keep ObjectStorage Position untouched from ViewHelper

g4-lisz at tonarchiv.ch g4-lisz at tonarchiv.ch
Thu May 14 12:17:15 CEST 2015


Thanks , Philipp!

I guess you mean putting this in the calling controller action?

Using it in viewhelper didn't help... Looks like calling toArray changes
the Iterator, too.

Hmmm. That makes things quite unhandy. Maybe I write a magic getter
method for the model, which returns arrays for each ObjectStorage. Like
this i can call it directly from the fluid template, without having to
change the action code.

Regards,
Till

On 05/13/2015 12:57 PM, Philipp Wrann wrote:
> call toArray method to get an array holding the children.
> _______________________________________________
> 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