public function actionInsertlist() { $model = new Comstocklist(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['comstock/create']); } else { return $this->renderAjax('create', ['model' => $model]); } }