View Helpers

In This Article

FormReset

The FormReset view helper can be used to render an <input type="reset"> HTML form input.

Basic usage

use Zend\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">

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