I think that deprecated $value means that you shouldn't leave it out,
but you don't have to assign anything to it either, cause it won't
work. Following is a literal copy & paste of my code, which I wrote
yesterday:
echo
$html->dayOptionTag('Modelname/date',$value=null,$selected=date('d'),$selectAttr=null,$optionAttr=null,$showEmpty=false);
echo
$html->monthOptionTag('Modelname/date',$value=null,$selected=date('m'),$selectAttr=null,$optionAttr=null,$showEmpty=false);
echo
$html->yearOptionTag('Modelname/date',$value=null,$minYear=date('Y')-1,$maxYear=date('Y'),$selected=date('Y'),$selectAttr=null,$optionAttr=null,$showEmpty=false);
Note that the current date is selected using the PHP date() function.
Hope this helps!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---