I need to create some datetime selects with the dateTime method from
the form helper. I need the select's year to have only current year
and next year.
I do this by:
$form->dateTime('Event.startime','DMY', 12, null,
array('maxYear'=>date('Y', strtotime('next year')),
'minYear'=>date('Y')), false);This works for what I want but: -It creates maxYear and minYear attributes in the select tag: <select name="data[Event][startime_year]" maxyear="2008" minyear="2007" id="EventStartimeYear"> -It selects next year (in this case: 2008), instead of current year as default. I would appreciate any help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
