Revision #7 was created by mpcabd on Nov 12, 2010, 9:48:27 PM.
Spelling issues
Content
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.
Applyies 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.
### Choisce of validators
Yii will look for validators in the specifikc order:
1. A method in the model class with the same name as the validator specified.
2. A built-in validator in Yii that extends the CValidator class.
3. A path/alias to a home made CValidator class that is not built in.