public function actionCreate() { $model = new EntryForm(); $model->attributes = Yii::$app->request->post(); if (!$model->save()) { return array_values($model->getFirstErrors())[0]; } return $model; }