Christine,

You might try this (I haven't tried it as I don't have time,but a
quick look at the API found the attribute ' minuteInterval'):
        echo $form->input('date', array( 'minuteInterval' => 30));

Also look at the API
    
http://api.cakephp.org/class_form_helper.html#363d9dcc25f7cd0624d3dc8f4254df34

and specifically http://api.cakephp.org/form_8php-source.html#l01530
and the relevant section in the book:
    http://book.cakephp.org/view/189/Automagic-Form-Elements

Which, as usual, falls tantalisingly short of the nugget you need
(sorry guys, I know you're doing a great job with the manual.)

I've just tested it and it does work!



On Jan 19, 12:39 pm, ChristineA <[email protected]> wrote:
> Hi there,
>
> I've been giving the user the option to insert the time into a form
> like this:
> <?php echo $form->input('time');?>
>
> Now the user has a choice of 60 minutes. I've been trying to limit the
> choice to 30 minutes leaps. So it should only be possible to choose
> 5:30, 6:00, 6:30 and so on. Is there any elegant way of doing this or
> do I have to write a huge html part listing every possible month, hour
> and minute?
>
> Thanks!
>
> Christine
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to