Field

Allows to configure the rendering of a field of the form.

Arguments

Argument Description
* name

Name of the field.

It must be an accessible property of the form model.

* layout Layout used for this field. For more information, read the chapter “Layouts”.
arguments List of arguments sent to the rendering of the field layout. If you can, you should prefer using the ViewHelper Option instead, which allows a better code readability.

Example

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

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

    <fz:field name="email" layout="default">
        ...
    </fz:field>

</fz:form>