You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
Model validation reference
|
|
|
|
==========================
|
|
|
|
|
|
|
|
This guide section doesn't describe how validation works but instead describes all Yii validators and their parameters.
|
|
|
|
In order to learn model validation basics please refer to [Model, Validation subsection](model.md#Validation).
|
|
|
|
|
|
|
|
Standard Yii validators
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
- `boolean`: [[BooleanValidator]]
|
|
|
|
- `captcha`: [[CaptchaValidator]]
|
|
|
|
- `compare`: [[CompareValidator]]
|
|
|
|
- `date`: [[DateValidator]]
|
|
|
|
- `default`: [[DefaultValueValidator]]
|
|
|
|
- `double`: [[NumberValidator]]
|
|
|
|
- `email`: [[EmailValidator]]
|
|
|
|
- `exist`: [[ExistValidator]]
|
|
|
|
- `file`: [[FileValidator]]
|
|
|
|
- `filter`: [[FilterValidator]]
|
|
|
|
- `in`: [[RangeValidator]]
|
|
|
|
- `integer`: [[NumberValidator]]
|
|
|
|
- `match`: [[RegularExpressionValidator]]
|
|
|
|
- `required`: [[RequiredValidator]]
|
|
|
|
- `string`: [[StringValidator]]
|
|
|
|
- `unique`: [[UniqueValidator]]
|
|
|
|
- `url`: [[UrlValidator]]
|
|
|
|
|
|
|
|
TBD: refer to http://www.yiiframework.com/wiki/56/ for the format
|