controllers/DefaultController.php
public function actionTaskview()
    {
        $id = $this->getRequestParam('id');
        $model = Project::getTaskModel($id);

        if (!isset($model)) {
            throw new NotFoundHttpException('The Task "' . $id . '" not found.');
        }

        return $this->render('taskview', [
            'model' => $model,
        ]);
    }
public function actionTaskview()
    {
        $id = $this->getRequestParam('id');
        $model = Project::getTaskModel($id);

        if (!isset($model)) {
            throw new NotFoundHttpException('The Task "' . $id . '" not found.');
        }

        return $this->render('taskview', [
            'model' => $model,
        ]);
    }
public function actionTaskview ( ) { $ id = $ this -> getRequestParam ( 'id' ) ; $ model = Project :: getTaskModel ( $ id ) ; if ( ! isset ( $ model ) ) { throw new NotFoundHttpException ( 'The Task "' . $ id . '" not found.' ) ; } return $ this -> render ( 'taskview' , [ 'model' => $ model , ] ) ; }
Displays a single Task model.
@return mixed
@throws NotFoundHttpException
Displays a single Task model .