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,
            ]);
        }
    }
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,
            ]);
        }
    }
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 , ] ) ; } }
Creates a new SRITaskstatus model.
If creation is successful, the browser will be redirected to the 'view' page.
@return mixed
Creates a new SRITaskstatus model . If creation is successful the browser will be redirected to the view page .