[TYPO3-mvc] create array as viewhelper argument

Thomas Mammitzsch thomas at visualworx.de
Tue Mar 1 10:17:37 CET 2011


Am 01.03.2011 10:11, schrieb Franz Koch:
>>>>
>>>> <f:link.action action="myaction" controller="mycontroller"
>>>> arguments="{mykey : myvalue}">my link</f:link.action>
>
> what happened when you used this code? Did the arguments simply be
> ignored or what's the problem with this?
>
fluid complains that arguments is of type string, but it expects an array.
>>> why are you trying to do?
>> because i need to link to a certain action in a certain controller for
>> an entity i don't know which it is in that moment.
>
> You know that you can use variables as actions etc?
>
> <f:link.action action="{someAction}"
> controller="{someController}">Foo</f:link.action>
yes i know, but building an array out of two variables as described 
above fails.

regards, Thomas



More information about the TYPO3-project-typo3v4mvc mailing list