Hi,
 
> <?php echo $html->dateTimeOptionTag('Post/publish_date', $dateFormat=
> 'DMY', $timeFormat= '12', $selected=null, $optionAttr=null) ?>
> 
> I understand everything but the $selected param.

You put the date/time you want to display in the $selected parameter (it
must be in a format that strftime() understands).
> 
> 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?

You only need to override the method if you want another year range than the
default one.

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

As far as I remember, if $selected is null, the helper automatically
displays the current date/time.
> 
> Is this possible in a way that doesn't require a helper?

Sure, you can code it yourself, but I don't see why you would want to do
this ;-)

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