News Feed
Jobs Feed
Sections

Recent Jobs

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

0 comments voice your opinion now!
multiple validation behavior cakephp framework rules



Similar Posts

Hasin Hayder's Blog: We are close to release Orchid, the new Framework

Paul Jones' Blog: New PDO Behavior In PHP 5.2.1

Chris Hartjes' Blog: 10 Days Later - Early Impressions of CakePHP vs. CodeIgniter

Chris Shiflett\'s Blog: Zend Framework License

DevShed: Introducing the Composite Pattern in PHP 5


Community Events









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


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

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