[TYPO3-mvc] ViewHelper returning an array - Ideas how to achieve it?
Franz Koch
typo3.RemoveForMessage at elements-net.de
Fri Apr 1 01:27:33 CEST 2011
Hey there,
I'm trying to create a viewHelper that's directly returning an
array/object so that I f.e. could use it to create some select options
for a select box using inlineSyntax. All works fine except the fact that
at some point the return value of my viewHelper is converted to string.
I haven't tried using a widget for this yet, but I assume it's the same
issue there. Any idea how to solve it? Didn't find any setting to
prevent the conversion to string (didn't even find the exact place where
it happens yet).
For now I use my viewHelper as wrapping tag and assign a
templateVariable that can be used inside, but that's making things much
more complex to read and also doesn't fit another demand on a second
viewHelper I'm thinking of.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list