我得到了
echo $this->Form->input('birthdate', array( 'label' => __('Geburtsdatum', true)
, 'dateFormat' => 'DMY'
, 'minYear' => date('Y') - 70
, 'maxYear' => date('Y') - 10 ));
在模型中,我将生日设置为最新。现在 Cakephp 吐出三个选择框,我非常喜欢。但它也会吐出两个丑陋的破折号/连字符,我想去掉它们。
选择框 - 选择框 - 选择框
有什么建议吗?
最佳答案
您可以指定一个分隔符
选项:
'separator' => 'YOUR_SEPARATOR'
关于Cakephp 自定义日期输入表单助手的输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6162322/