|
|
@ -8,12 +8,14 @@ |
|
|
|
$model=new UserInput(['scenario'=>'register']); |
|
|
|
|
|
|
|
$inputDate=[ |
|
|
|
"name" => "kuangweiian", |
|
|
|
"email" => "12345678@qq.com", |
|
|
|
"password" => "1234567890", |
|
|
|
"pwdConfirm"=> "1234567890", |
|
|
|
"UserInput"=>[ |
|
|
|
"name" => "kuangweiian", |
|
|
|
"email" => "12345678@qq.com", |
|
|
|
"password" => "1234567890", |
|
|
|
"pwdConfirm"=> "1234567890", |
|
|
|
] |
|
|
|
]; |
|
|
|
$model->load(["UserInput"=>$inputDate],"UserInput"); |
|
|
|
$model->load($inputDate); |
|
|
|
|
|
|
|
if($model->validate()){ |
|
|
|
echo "register succ".PHP_EOL; |
|
|
|