View Helpers

In This Article

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

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

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

Output:

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

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