/** * Creates a new ProductConfig model. * If creation is successful, the browser will be redirected to the 'view' page. * @return mixed */ public function actionCreate() { $model = new ProductConfig(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return true; } else { return $this->renderPartial('_form', [ 'model' => $model, ]); } }