Example #1
0
 /**
  * Displays a single Puertos model.
  * @param integer $id
  * @return mixed
  */
 public function actionView($id)
 {
     $model = $this->findModel($id);
     $model->tipo = Tipo::findNameById($model->tipo);
     return $this->render('view', ['model' => $model]);
 }