/** * Displays a single UserBibi model. * @param integer $id * @return mixed */ public function actionView($id) { $model = $this->findModel($id); return $this->render('view', ['model' => $model, 'schedule' => Activity::getActivitiesByPicUserId($model->User_id)]); }