Option

Defines the value of an argument that is sent during the rendering of a field.

It's another way of using arguments of the ViewHelper “Field”. You can use both features, but the ViewHelper option will override an argument previously defined.

Important

This ViewHelper must be used inside a ViewHelper “Field”.

Arguments

Argument Description
* name Name of the argument.
* value Value of the argument (may be of any type).

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{namespace fz=Romm\Formz\ViewHelpers}

<fz:form action="submitForm" name="myForm">

    <fz:field name="email" layout="default">
        <fz:option name="required" value="1">

        ...
    </fz:field>

</fz:form>