If you're using the $form->datetime() method, the last param is a
boolean: true if you want it to be empty. This is also the case for
the day(), month(), and year() methods. These are passed to select()
method.

However, if you're using the $form->input() method (and having Cake
figure out that a set of dates is required), you need to include
'empty' => true to the options array (note the different key name).

On Wed, Jul 9, 2008 at 11:44 AM, bmgz <[EMAIL PROTECTED]> wrote:
>
> I am wanting to know how do I make the default selected value in a
> date <select> the empty value, if the value from the database is null?
> It always defaults to todays date?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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