Jonathan Snook's Blog: Multiple Validation Sets in CakePHP 1.2

Courtesy PHPDeveloper.org  Wed, 07/23/2008 - 07:51

Jonathan Snook has posted two methods for creating multiple validation sets in the latest version of your CakePHP application.

In CakePHP, you define how your data should be validated by setting parameters on the validate property of your model.

In version 1.2, there is an on option that can be set on a specific rule that, when set, is either create or update.

[...] Despite that, I developed a slightly different approach that allows for different...


 

Reply

The content of this field is kept private and will not be shown publicly.