views:

201

answers:

2

I'm using

$form->input("time")

to render select boxes for time input. They have minute-accuracy, which I don't need.

How could I limit the select lists to quarters (XX:00, XX:15, XX:30, XX:45)?

+3  A: 

This URL might help you: http://book.cakephp.org/view/189/Automagic-Form-Elements#options-interval-757

I hope this helps!

JanWillem
+4  A: 

Here's how to do it:

   <?php echo $form->input('time', array('type' => 'time', 'interval' => 15)); ?>
dale
perfect, thank both of you!
blinry