草庐IT

MonthSelect

全部标签

php - Zend Framework 2 DateSelect/MonthSelect 格式化

使用新发布的ZendFramework2版本,twonewformelementswereadded;DateSelect和MonthSelect。我想用前者,它增加了三个选择;日、月和年。但是,我在按照自己的意愿格式化输出时遇到问题-并且没有这方面的文档!我正在将表单元素添加到我的表单中(取自thispage):$this->add(array('type'=>'Zend\Form\Element\DateSelect','name'=>'birthDate','options'=>array('label'=>'Date','create_empty_option'=>true,'