Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cakephp customizing the output of date input form helpers

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?

like image 779
Thomas Strobl Avatar asked Dec 19 '25 22:12

Thomas Strobl


1 Answers

There is a separator option you can specify:

'separator' => 'YOUR_SEPARATOR'
like image 75
dhofstet Avatar answered Dec 22 '25 21:12

dhofstet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!