|
|
@ -3,7 +3,7 @@ |
|
|
|
|
|
|
|
use yii\base\Model; |
|
|
|
use wiggins\myProject\validators\MyValidator; |
|
|
|
use wiggins\myProject\validators\HKPhoneNumValidator; |
|
|
|
use wiggins\myProject\validators\HKPhoneNum; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
@ -86,7 +86,7 @@ |
|
|
|
[['name','email','hkPhoneNum','password','pwdConfirm'],'required','on'=>'register'], |
|
|
|
[['name','password'],'required','on'=>'login'], |
|
|
|
['name','wiggins\myProject\validators\MyValidator'], |
|
|
|
['hkPhoneNum','wiggins\myProject\validators\HKPhoneNumValidator'], |
|
|
|
['hkPhoneNum','wiggins\myProject\validators\HKPhoneNum'], |
|
|
|
]; |
|
|
|
} |
|
|
|
} |
|
|
|