/**
  * Displays a single Category model.
  * @param integer $id
  * @return mixed
  */
 public function actionView($id)
 {
     return $this->render('view', ['model' => $this->findModel($id), 'courseList' => Course::findRootByCategory($id)]);
 }