|
Size: | 8465 |
Storage flags: | no_autoload,compress/gzip (33%) |
The FormDateTimeLocal view helper can be used to render a <input type="datetime-local"> HTML5 form input. It is meant to work with the Zend\Form\Element\DateTimeLocal element, which provides a default input specification for validating HTML5 datetime values.
FormDateTimeLocal extends from Zend\Form\View\Helper\FormDateTime.
Basic usage:
1 2 3 4 5 6 7 8 | use Zend\Form\Element;
$element = new Element\DateTimeLocal('my-datetime');
// Within your view...
echo $this->formDateTimeLocal($element);
// <input type="datetime-local" name="my-datetime" value="">
|
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.