/** * Creates a new SRITaskstatus model. * If creation is successful, the browser will be redirected to the 'view' page. * @return mixed */ public function actionTaskstatuscreate() { $model = new SRI_Taskstatus(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['taskstatusview', 'id' => $model->id]); } else { return $this->render('taskstatus_create', ['model' => $model]); } }