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
FormReset
The FormReset
view helper can be used to render an <input type="reset">
HTML
form input.
Basic usage
use Laminas\Form\Element;
$element = new Element('my-reset');
$element->setAttribute('value', 'Reset');
// Within your view...
echo $this->formReset($element);
Output:
<input type="reset" name="my-reset" value="Reset">