> I think that in order to work you need to specify the model name in
> $form->create(), you should check that the form with no "formating"
> have the right model. And if it belongs to a form for another model, I
> think you'll have to added the type parameter to the input by hand.
Don't think this is the case, for me the following 'automagic' form
fields render fine within the same form:
echo $form->create('Staff');
echo $form->input('Staff.date_enquired', array('empty' => true));
echo $form->input('Person.dob', array('empty' => true));
The array('empty' => true) allows you to supply a blank date, which
actually gets added as a NULL value if any of the three select lists
are left blank.
You sure you have named the fields correctly as the 'automagic' should
interrogate the table and if it comes across a DATE field type it
should give you the three select lists.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---