在我的表单中,我使用的是类似于的东西
$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-日期时间