欧美AV无码一区二区,麻豆+无码+国产在线+观看,欧美狂躁少妇XXXX高潮无码,美女扒开屁股让男人桶免费观看,极品粉嫩国产18尤物在线播放

Common Rules in Yii2

Parameters must be filled in.

['email, username, password,agree,verifyPassword,verifyCode', 'required']
'email, username, password, agree, verifyPassword, verifyCode' are request fields

Check for duplicate field content

['email','unique','message'=>'用戶(hù)名已占用']
The email field is requested; the system will check the database table for duplicate fields.

Now input the maximum number of characters

['email, username', 'length', 'max'=>64]
'email, username' field length cannot exceed 64 characters

Limit the minimum and maximum length of users

['username', 'length', 'max'=>7, 'min'=>2, 'tooLong'=>'用戶(hù)名請輸入長(cháng)度為4-14個(gè)字符', 'tooShort'=>'用戶(hù)名請輸入長(cháng)度為2-7個(gè)字']

Limit the minimum and maximum password length.

['password', 'length', 'max'=>22, 'min'=>6, 'tooLong'=>'密碼請輸入長(cháng)度為6-22位字符', 'tooShort'=>'密碼請輸入長(cháng)度為6-22位字符']

Is the input in email format?

['email','email','message'=>'郵箱格式錯誤']
Verify if the input email field is in email format, without writing a separate validation rule!

Check if the user's input passwords match.

['verifyPassword', 'compare', 'compareAttribute'=>'password', 'message'=>'請再輸入確認密碼'],

Check if the user agrees to the terms and conditions

['agree', 'required', 'requiredValue'=>true,'message'=>'請確認是否同意隱私權協(xié)議條款']
message - prompt information

Check if it is in date format

['created', 'date', 'format'=>'yyyy/MM/dd/ HH:mm:ss']

Check if it contains the input character

['superuser', 'in', 'range' => array(0, 1)]
Superuser does not include 0 and 1.

Regular expression validator

['name','match','pattern'=>'/^[a-z0-9-_]+$/']
name Input Validation Field | pattern Regular Expression Rule

Digital Verifier

['id', 'numerical', 'min'=>1, 'max'=>10, 'integerOnly'=>true]
Field ID | Verify if the input number is between 1 and 10!

Type validation: integer, float, string, array, date, time, datetime

['created', 'type', 'datetime']
Verify integer, float, string, array, date, time, timestamp

File format verification upload

['filename', 'file', 'allowEmpty'=>true, 'types'=>'zip, rar, xls, pdf, ppt','tooLarge'=>'圖片不要超過(guò)800K']
Filename field | Types specified format

You recently used:

收藏: favorite Menu QQ
欧美AV无码一区二区,麻豆+无码+国产在线+观看,欧美狂躁少妇XXXX高潮无码,美女扒开屁股让男人桶免费观看,极品粉嫩国产18尤物在线播放