Package

ViewHelpers

ViewHelper Documentation

v:call

Call ViewHelper

Calls a method on an existing object. Usable as inline or tag.

Examples

<!-- inline, useful as argument, for example in f:for -->
{object -> v:call(method: 'toArray')}
<!-- tag, useful to quickly output simple values -->
<v:call object="{object}" method="unconventionalGetter" />
<v:call method="unconventionalGetter">{object}</v:call>
<!-- arguments for the method -->
<v:call object="{object}" method="doSomethingWithArguments" arguments="{0: 'foo', 1: 'bar'}" />

Arguments

method string, required

object anySimpleType, required

arguments anySimpleType, required

ViewHelper Resources

Schema Resources