Package

ViewHelpers

ViewHelper Documentation

v:iterator.push

Adds one variable to the end of the array and returns the result.

Example:

<f:for each="{array -> v:iterator.push(add: additionalObject, key: 'newkey')}" as="combined">
...
</f:for>

Arguments

subject anySimpleType

Input to work on - Array/Traversable/...

add anySimpleType

Member to add to end of array

key anySimpleType

Optional key to use. If key exists the member will be overwritten!

as string

Template variable name to assign; if not specified the ViewHelper returns the variable instead.

ViewHelper Resources

Schema Resources