On this page
Caution
The documentation you are viewing is for an older version of this component.
Switch to the latest (v3) version.
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>