yii2 framework-defined constraints
Public $builtInValidators = [' Boolean ' => ' Yii\validators\booleanvalidator ', ' captcha ' => ' Yii\captcha\cap
Tchavalidator ', ' compare ' => ' yii\validators\comparevalidator ', ' Date ' => ' Yii\validators\datevalidator ', ' Default ' => ' Yii\validators\defaultvaluevalidator ', ' Double ' => ' yii\validators\numbervalidator ', ' each ' => ' yii\validators\eachvalidator ', ' email ' => ' yii\validators\emailvalidator ', ' exist ' => '
S\existvalidator ', ' file ' => ' yii\validators\filevalidator ', ' Filter ' => ' Yii\validators\filtervalidator ', ' Image ' => ' yii\validators\imagevalidator ', ' in ' => ' yii\validators\rangevalidator ', ' Integer ' => [' Class ' => ' Yii\validators\numbervalidator ', ' integeronly ' => true], ' match ' => ' yii\validators\regularexp Ressionvalidator ', ' number ' => ' yii\validators\numbervalidator ', ' Required ' => ' Yii\validators\requiredvali Dator ', ' safe ' => ' Yii\validators\safevalidator ', ' string ' => ' yii\validators\stringvalidator ', ' trim ' => [' class ' => ' Yii \validators\filtervalidator ', ' filter ' => ' trim ', ' Skiponarray ' => true], ' unique ' => ' Yii\validators\uniquev Alidator ', ' url ' => ' yii\validators\urlvalidator ']
The above is a small set up to introduce the YII2 rules of the Code of validation, I hope to help you, if you have any questions please give me a message, small set will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!