View Helpers

In This Article


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 Zend\Form\Element;

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

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


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

Found a mistake or want to contribute to the documentation? Edit this page on GitHub!