View Helpers

In This Article

FormSubmit

The FormSubmit view helper can be used to render an <input type="submit"> HTML form input. It is meant to work with the Submit element.

Basic usage

use Zend\Form\Element;

$element = new Element\Submit('my-submit');

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

Output:

<input type="submit" name="my-submit" value="">

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