Multiple Validation Sets in CakePHP 1.2

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. This allows you to define different rules depending on the type of action being performed. That, in combination with the required and allowEmpty properties, give you a fair amount of control over different validation rules [...]

Stumble Reviews

  1. roadrat537 - Cake php is awesome

    Review on — July 23, 2008, 8:01 pm

Plugin powered by StumbleCult

You may Leave a comment after viewing the Original article or Trackback this entry.

Leave a comment

Please be polite and on topic. Your e-mail will never be published.