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="">