probably the easiest way is to create your own version of the html
helper (perhaps called MyHtmlHelper) that mirrors the calls that the
html helper makes for the parts you want to change.

On 4/9/07, Dan Ballance <[EMAIL PROTECTED]> wrote:
> >
> > 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 :-)
>
>
>  >
>


-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to