News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Mike Bernat's Blog:
CakePHP - Changing the Default Value of a Date-Time Input
December 10, 2008 @ 07:54:44

In a recent post to his blog Mike Bernat gives a quick tip on how to change the default value of a data-time input field in a CakePHP application.

Automagically generated date/time input fields normally default to the current date and time. For a couple of reasons, I had to change this to another default value.

His included code shows how to modify the default behavior of the form input field for the date with an array of parameters including the hour, minute and meridian (am/pm) values for the element.

0 comments voice your opinion now!
cakephp datetime form field custom default value


blog comments powered by Disqus

Similar Posts

Derick Rethans' Blog: Unix Epoch and PHP's calendar system

DevShed: Validating Incoming Data by Using Polymorphism with Objects in PHP 5

Nik Chankov's Blog: 10 reasons to choose CakePHP as Framework

Padraic Brady's Blog: Zend Framework App Tutorial - Part 9: Zend_Vew and Displaying Blog Entries

Stefan Mischook's Blog: Creating Custom PHP Functions Video Tutorial - Part 3


Community Events

Don't see your event here?
Let us know!


php7 symfony2 voicesoftheelephpant framework api library laravel community introduction conference podcast opinion interview performance example release version composer extension series

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework