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
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 Laminas\Form\Element;
$element = new Element\Submit('my-submit');
// Within your view...
echo $this->formSubmit($element);
Output:
<input type="submit" name="my-submit" value="">