I use
$form->input("time")
to display the selection fields for entering the time. They have little accuracy, which I do not need.
How can I limit my selection lists to quarters (XX: 00, XX: 15, XX: 30, XX: 45)?
Here's how to do it:
<?php echo $form->input('time', array('type' => 'time', 'interval' => 15)); ?>
This url can help you: http://book.cakephp.org/view/189/Automagic-Form-Elements#options-interval-757
Hope this helps!
Source: https://habr.com/ru/post/1732828/More articles:PHP: translate virtual path to physical path - phpAlternative for templates in C ++ - c ++the problem of mixing c and C ++ - c ++How can I generate virtual properties using AssemblyBuilder in C # 4.0? - reflectionPython: Как получить доступ к объекту родительского класса через экземпляр производного класса? - pythonProblem: CSS for a web application window - cssHow to enable user interaction with UITableViewCell content in edit mode? - iphonereading csv file into access database - vb.netCounting the number of select statements, connections for each user in MySQL - mysqlFind the largest free memory block - memory-managementAll Articles