controllers/DefaultController.php
public function actionTasknotedelete($taskid, $id)
    {
        Task::getTaskNoteModel($id)->delete();

        return $this->redirect(['tasknotelist', 'taskid' => $taskid]);
    }
public function actionTasknotedelete($taskid, $id)
    {
        Task::getTaskNoteModel($id)->delete();

        return $this->redirect(['tasknotelist', 'taskid' => $taskid]);
    }
public function actionTasknotedelete ( $ taskid , $ id ) { Task :: getTaskNoteModel ( $ id ) -> delete ( ) ; return $ this -> redirect ( [ 'tasknotelist' , 'taskid' => $ taskid ] ) ; }
Deletes an existing TaskComment model.
If deletion is successful, the browser will be redirected to the 'index' page.
@param integer $id
@return mixed
Deletes an existing TaskComment model . If deletion is successful the browser will be redirected to the index page .