> > HtmlHelper::dateTimeOptionTag ( $ *tagName*, > > $ *dateFormat* = 'DMY', > > $ *timeFormat* = '12', > > $ *selected* = null, > > $ *selectAttr* = null, > > $ *optionAttr* = null, > > $ *showEmpty* = true > ) > http://api.cakephp.org/class_html_helper.html#e392e8e82f239446e9af145a07f53d07 > >
Hello folks, does anyone know how i can alter the default settings for this html helper? I want users to select a full 'day | month | year | time' - BUT - i only want them to be able to select half hour slots, ie the final minutes drop-down selection should only offer 00 and 30. I am assuming i need to do something in $optionAttr, but i can't see any documentation anywhere on how to do this. I only want to override the 'minutes' drop-down, which my generated html page source is calling: <select name="data[Slot][datetime_min]" id="SlotDatetimeMin"> Any help with this riddle greatly appreciated, dan :-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
