Hi
I use Form helper like this:
e($form->input(
'startDate' ,
array(
'id' => 'starDate',
'name' => 'data[starDate]',
'label' => '<strong>Start date</strong>:' ,
'type' => 'date',
'dateFormat' => 'DMY',
'empty' => false,
'monthNames' => false,
'minYear' => date('Y')-1,
'maxYear' => date('Y')+1
)
));
The HTML result is:
<select id="starDateDay" name="data[starDate]">......
<select id="starDateDay" name="data[starDate]">......
<select id="starDateDay" name="data[starDate]">......
Instead how can I have :
<select id="starDateDay" name="data[starDate][day]"> .....
<select id="starDateDay" name="data[starDate][month]"> .....
<select id="starDateDay" name="data[starDate][year]">....
Marco
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---