php - ZF 2 Zend\Form\Element\Date 不在 View 中创建日历

标签 php zend-framework2

在我的表单中,我使用类似的东西

  $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/

相关文章:

zend-framework2 - zf2 ModuleManager 配置合并 - 删除 key

php - 如何在 Zend Framework 2 中为变量值构建 ACL 断言?

php - Laravel Eloquent 查询中的 Intval 函数

php - 正则表达式求反数

javascript - 当 href 标签中的 onMouseOver 时,如何在 jQuery 中分配动态元素 id?

php - 我们应该从密码中删除任何字符吗?

Php、Mysql根据前缀选择字段

mysql - Zf2 表网关连接查询仅从第二个表中获取最新行(按 id)

php - Zend framework 2/Doctrine 2/批量操作和事件触发

zend-framework2 - ZF2 通过工厂访问路线和帖子