News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Felix Geisendorfer's Blog:
Validating the cleaned output of HtmlHelperdateTimeOptionTag()
October 17, 2006 @ 08:18:00

Felix Geisendorfer keeps it short and sweet in this latest post. He shares a regular expression to validate the output of the HtmlHelper method dateTimeOptionTag.

Ok, let's make this short and painless. I just needed to validate the (cleaned) output of an HtmlHelper::dateTimeOptionTag() to be a correct datetime value matching this format.

The regular expression is fairly simple (long, but simple) and he shows a simple way to include it into a model (in the special $validate array) to check the contents of the 'start' field).

0 comments voice your opinion now!
cakephp framework model regular expression validate datetime cakephp framework model regular expression validate datetime



Similar Posts

Symfony Blog: Symfony 1.0.10 is Out

The Show (CakePHP Podcast): Understanding FormHelper

SaniSoft Blog: Bugs & enhancements for Auth component in CakePHP v1.2 - Part 1

Community News: SolarPHP Framework Release 1.0.0alpha2

The Show: CakeFest 2008 Wrap Up


Community Events







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


cakephp mysql example job zend code ajax security zendframework release database application conference releases PHP5 developer package framework PEAR book

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