I found you can set minYear / maxYear, for the year range. Do not
really need it on the other fields.
Of course I discover that part after posting.
Thanks though!
On Nov 26, 1:26 pm, "Christopher E. Franklin, Sr."
<[EMAIL PROTECTED]> wrote:
> You should be able to set a default by passing a unix timestamp to the
> field $selected.
> $selected = strtotime('Jan 6, 1978 07:00');
> $form->dateTime('Field.name', 'DMY', 12, $selected, array(), false);
>
> about setting up the range? No clue besides making your own helper or
> modifying cake code.
>
> On Nov 26, 10:16 am, releod <[EMAIL PROTECTED]> wrote:
>
> > Hello, I was wondering if anyone could shed some light on how to pre-
> > populate a datetime FormHelper field. I have read through the API, and
> > I get the basics of it, but I guess not fully because now I am here
> > asking for some guidance :)
>
> > Two things I am interested in, is there a way to specify a default
> > time, if POST date is not available for the datetime field?
>
> > The other would be how to specify a range, so instead of going all the
> > way up to 2027, it would be 2010 or something.
>
> > Thanks!!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---