As long as the field is a date field in the database you should be
able to simply use $form->input( 'Model.datefieldname' , ... ) as
usual. I believe it autocreates a number of select boxes.

Good luck._

On Mar 28, 3:53 pm, shabba <[EMAIL PROTECTED]> wrote:
> I'm trying to use the form helper to display drop down menu date
> fields. Now if I want to display datetime it works, but when I try and
> do the same thing for date I get this error:
>
> Warning (512): Method FormHelper::date does not exist [CORE/cake/libs/
> view/helper.php, line 148]
>
> The code from my view is
>
> <h1>Add Task</h1>
> <?php
> echo $form->create('Task');
> echo $form->input('title');
> echo $form->input('description', array('rows' => '3'));
> echo $form->input('context');
> echo $form->input('project');
> echo $form->date('due');
> echo $form->end('Save Task');
> ?>
--~--~---------~--~----~------------~-------~--~----~
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