Cakephp定制日期输入表单帮助器的输出 [英] Cakephp customizing the output of date input form helpers
本文介绍了Cakephp定制日期输入表单帮助器的输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我得到了
echo $this->Form->input('birthdate', array( 'label' => __('Geburtsdatum', true)
, 'dateFormat' => 'DMY'
, 'minYear' => date('Y') - 70
, 'maxYear' => date('Y') - 10 ));
并且在模型中我已将birthdate设置为date。现在Cakephp吐出三个选择框,我绝对喜欢。
and in the model I've set birthdate to date. Now Cakephp spits out three select boxes, which I absolutely adore. BUT it also spits out two ugly dashes / hyphens in between, which I want to get rid of.
SELECTBOX - SELECTBOX - SELECTBOX
SELECTBOX - SELECTBOX - SELECTBOX
任何建议?
推荐答案
有一个分隔符
选项,您可以指定:
There is a separator
option you can specify:
'separator' => 'YOUR_SEPARATOR'
这篇关于Cakephp定制日期输入表单帮助器的输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文