[TYPO3-mvc] create array as viewhelper argument

Thomas Allmer at at delusionworld.com
Tue Mar 1 15:39:36 CET 2011


On 28.02.2011 20:21, Thomas Mammitzsch wrote:
> 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

at what point to you know it? is the user selecting it? then you will 
have to use js?

 > no. mykey and myvalue are variables containing a string.

so these 2 values are available in the controller right?
I mean you can just create an array in the controller and pass it on

$this->view->assign('myArguments', array('format' => 'table', 'action' 
=> 'list'));

<f:link.action arguments="{myArguments}">link</f:link.action>

building arrays inside the view is probably not the right context and I 
guess it's not easily possible...

I'm still not sure if I get what are you trying to do...
-- 
+---------------------------------+-----------------------------------+
| Thomas Allmer                   |   http://www.delusionworld.com    |
| E-mail: at at delusionworld.com    |   phone: +43 699 16217064         |
+---------------------------------+-----------------------------------+


More information about the TYPO3-project-typo3v4mvc mailing list