/** * Creates a new Item model. * If creation is successful, the browser will be redirected to the 'view' page. * @return mixed */ public function actionCreate() { print_r(Yii::$app->request->post()); exit; $model = Kiwi::getItem(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id' => $model->item_id]); } else { return $this->render('create', ['model' => $model]); } }