News Feed
Jobs Feed
Sections




News Archive
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

PHP-Coding-Practices.com: How Table Migrations In CakePHP 1.2 Can Save Your Life

Community News: CakePHP Framework Releases Version 1.0

Felix Geisendorfer's Blog: 10 Days of Free Dessert!

ThinkingPHP: Issues with output buffering in CakePHP

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


Community Events











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


interview testing language functional introduction usergroup release database rest series community podcast phpunit example framework development symfony2 conference zendframework2 opinion

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