Cakephp customizing the output of date input form helpers

淺唱寂寞╮ 提交于 2019-12-10 21:17:30

问题


I got

echo $this->Form->input('birthdate', array( 'label' => __('Geburtsdatum', true)
                        , 'dateFormat' => 'DMY'
                        , 'minYear' => date('Y') - 70
                        , 'maxYear' => date('Y') - 10 ));

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

any suggestions?


回答1:


There is a separator option you can specify:

'separator' => 'YOUR_SEPARATOR'


来源:https://stackoverflow.com/questions/6162322/cakephp-customizing-the-output-of-date-input-form-helpers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!