Skip to content

Textarea field type

Jelle Spekken edited this page Jun 8, 2014 · 2 revisions

Field type: TextArea

The textarea field type is used to display an textarea field.

$field = $mapper->textarea('field-name', 'default value')
    ->label('My great label'); // (optional) This will override the standard field label

The first argument is the field name relative to the name in your database (or overwritten via an attribute accessor)

The second argument will be the default value if non is present. This argument is of course optional.

Clone this wiki locally