I am a little confused about this very same issue -- the
dateTimeOptionTag.

Here's a code snippet:

<?php echo $html->dateTimeOptionTag('Post/publish_date', $dateFormat=
'DMY', $timeFormat= '12', $selected=null, $optionAttr=null) ?>

I understand everything but the $selected param.

Heiner said we need to write a helper to override the method, but I
don't understand why there is a $selected param at all then?  I'd like
to be able to call php's date function right there in the view so the
date/time will always default to the current time/date.

Is this possible in a way that doesn't require a helper?

If we need a helper, any suggestions or code anywhere to solve this
problem?


Please don't slam me, I'm new to Cake but really loving it so far!

- Dustin



On Jan 18, 1:38 am, kitten <[EMAIL PROTECTED]> wrote:
> > is it possible to control the starting year indateTimeOptionTag()You have 
> > to override the method in your own helper.
>
> Heiner
>
>
>
> > right now it starts from 1967, I want to start from 2007 is it
> > possible?
> 
> > suman


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