Before I go through the trouble of filing a ticket on this one, maybe
somebody can look over what I'm doing and tell me if it's a problem of
my own doing.
I've got the normal date field setup in a Controller::add :
<?php echo $form->input('Controller.date', array('label' => 'Date
field', 'empty' => true))?>
When you submit the form and a required field is missing, you get
redirected back to the page but when you look at the datefield it's
defaulting to the PHP date for "unrecognized" (12/31/1969). The
string, if you output it, looks like this:
Array (
[Controller] => Array
(
[date] => -- ::20
)
)
(20 is whatever the seconds were when you submitted the form, I
guess.)
Is there something I am doing wrong here?
-B.D.
-b.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---