'register']); $inputDate=[ "UserInput"=>[ "name" => "kuangweiian", "email" => "12345678@qq.com", "password" => "1234567890", "pwdConfirm"=> "1234567890", ] ]; $model->load($inputDate); if($model->validate()){ echo "register succ".PHP_EOL; }else{ echo "register failed".PHP_EOL; print_r($model->getErrors()); } ?>