Revision #7 has been created by mpcabd on Nov 12, 2010, 9:48:27 PM with the memo:
Spelling issues
« previous (#5) next (#8) »
Changes
Title
unchanged
Reference: Model rules validation
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
Form validation
Content
changed
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.
Appl
yies 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 specifi
kc 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.
### Scenarios
TODO: Write shortly about scenarios.[...]