News Feed
Sections




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

Jonathan Snook's Blog:
Multiple Validation as Behavior in CakePHP 1.2
July 31, 2008 @ 08:44:30

Jonathan Snook has posted an update to a previous post about validating multiple input fields at the same time in a CakePHP application. This update changes the way the validation is handled and moves it over into a Behavior.

Using the new behavior is much like using the script as it was before. You can name the validation properties to include the action name and it'll automatically set that validation set as the default.

His behavior lets you define validation rules, both included in a default set and as callbacks. He includes an example of its use and the full code (all thirty lines of it) for the behavior itself.

1 comment voice your opinion now!
multiple validation behavior cakephp framework rules


blog comments powered by Disqus

Similar Posts

Pathfinder Blog: PHP Spam Injection First Aid with Apache ModSecurity

Nick Halstead's Blog: 10 Reasons why PHP is still very much alive

Klaus Graefensteiner's Blog: Climbing the CodeIgniter PHP MVC framework learning curve

Daniel Krook's Blog: Technologies of the day: CakePHP & CodeIgniter

Eirik Hoem's Blog: Why Delphi for PHP should have used Prado instead of VCL


Community Events





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


voicesoftheelephpant symfony deployment interview community list threedevsandamaybe podcast tips bugfix zendserver language code conference api laravel introduction release framework series

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