View Helpers
In This Article
FormSearch
The FormSearch
view helper can be used to render an <input type="search">
HTML5 form input.
FormSearch
extends from FormText.
Basic usage
use Zend\Form\Element;
$element = new Element('my-search');
// Within your view...
echo $this->formSearch($element);
Output:
<input type="search" name="my-search" value="">
Found a mistake or want to contribute to the documentation? Edit this page on GitHub!