Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Latest commit

 

History

History
27 lines (16 loc) · 717 Bytes

zend.form.view.helper.form-week.rst

File metadata and controls

27 lines (16 loc) · 717 Bytes

FormWeek

The FormWeek view helper can be used to render a <input type="week"> HTML5 form input. It is meant to work with the Zend\\Form\\Element\\Week <zend.form.element.week> element, which provides a default input specification for validating HTML5 week values.

FormWeek extends from Zend\\Form\\View\\Helper\\FormDateTime <zend.form.view.helper.form-date-time>.

Basic usage:

use Zend\Form\Element;

$element = new Element\Week('my-week');

// Within your view...

echo $this->formWeek($element);
// <input type="week" name="my-week" value="">