On this page

View Helpers

FormTextarea

The FormTextarea view helper can be used to render a <textarea></textarea> HTML form input. It is meant to work with the Textarea element.

Basic usage

use Laminas\Form\Element;

$element = new Element\Textarea('my-textarea');

// Within your view...
echo $this->formTextarea($element);

Output:

<textarea name="my-textarea"></textarea>