Esempio n. 1
0
 public function actionValidateCreate()
 {
     $model = new Supplier();
     if (Yii::$app->request->isAjax && $model->load(Yii::$app->request->post())) {
         Yii::$app->response->format = Response::FORMAT_JSON;
         return ActiveForm::validate($model);
     }
 }