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

Jonathan Snook's Blog: Zend Framework: First Impressions

Zend Developer Zone: Generating and Validating Web Forms With PEAR HTML_QuickForm (part 2)

The Bakery: PremierMarinas.com, ScienceHack.com and an iPhone App

Community News: CakeFest 2008 Announced (and a Call for Papers)

Till Klampaeckel's Blog: Deploying PHP applications: PEAR and composer resources for chef


Community Events





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


refactor language community symfony2 podcast install unittest list testing opinion introduction developer code threedevsandamaybe laravel framework interview experience series release

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