Revision #7 has been created by mpcabd on Nov 12, 2010, 9:48:27 PM with the memo:
« previous (#5) next (#8) »
Reference: Model rules validation
This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro.
ys to Yii: 1.0.10
## How validation works
[...]The code above is an example of what the [Model::rules()] function may look like. The arrays in the main array each one sets a rule of validation.
e of validators
Yii will look for validators in the specifi
1. A method in the model class with the same name as the validator specified.
2. A builtin validator in Yii that extends the CValidator class.
3. A path/alias to a home made CValidator class that is not built in.
TODO: Write shortly about scenarios.