public function actionValidateCode() { $model = new RegisterForm(); $post = Yii::$app->request->post(); $model->telephone = $post['telephone']; $model->testcode = $post['confirmCode']; $model->ValidateCode(); }