在我的表单中,我使用类似的东西
$this->add(array(
'name' => 'date1',
'type' => 'Zend\Form\Element\Date',
'options' => array(
'label' => 'Date:',
)
));
在我看来,我正在使用这个
echo $this->formRow($form->get('date1'));
但它没有创建任何日历。
编辑:在 Fire Fox 中遇到此问题,在 Chrome 中遇到某种日历,我不知道为什么!
最佳答案
不幸的是,这是一项 HTML5 功能,目前仅在 Chrome 和 Opera 中开箱即用。 什么时候可以使用:http://caniuse.com/#feat=input-datetime
关于php - ZF 2 Zend\Form\Element\Date 不在 View 中创建日历,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17454508/