controllers/DefaultController.php
public function actionTasknoteupdate($id)
    {
        $model = Task::getTaskNoteModel($id);

        if ($model->load(Yii::$app->request->post()) && $model->save()) {
            return $this->redirect(['tasknoteview', 'id' => $model->id]);
        } else {
            return $this->render('tasknoteupdate', [
                'model' => $model,
            ]);
        }
    }
public function actionTasknoteupdate($id)
    {
        $model = Task::getTaskNoteModel($id);

        if ($model->load(Yii::$app->request->post()) && $model->save()) {
            return $this->redirect(['tasknoteview', 'id' => $model->id]);
        } else {
            return $this->render('tasknoteupdate', [
                'model' => $model,
            ]);
        }
    }
public function actionTasknoteupdate ( $ id ) { $ model = Task :: getTaskNoteModel ( $ id ) ; if ( $ model -> load ( Yii :: $ app -> request -> post ( ) ) && $ model -> save ( ) ) { return $ this -> redirect ( [ 'tasknoteview' , 'id' => $ model -> id ] ) ; } else { return $ this -> render ( 'tasknoteupdate' , [ 'model' => $ model , ] ) ; } }
Updates an existing TaskComment model.
If update is successful, the browser will be redirected to the 'view' page.
@param integer $id
@return mixed
Updates an existing TaskComment model . If update is successful the browser will be redirected to the view page .