开发者

Cakephp customizing the output of date input form helpers

开发者 https://www.devze.com 2023-03-08 19:26 出处:网络
I got echo $this->F开发者_开发问答orm->input(\'birthdate\', array( \'label\' => __(\'Geburtsdatum\', true)

I got

echo $this->F开发者_开发问答orm->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?


There is a separator option you can specify:

'separator' => 'YOUR_SEPARATOR'
0

精彩评论

暂无评论...
验证码 换一张
取 消