By Volume4
via php.dzone.com
Published: Jul 31 2008 / 16:58
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.
Tweet
SaveShareSend
Tags: frameworks, how-to, php, web design



Add your comment