コード例 #1
0
 /**
  * @param Request $Request
  * @return mixed
  */
 public function renderCurrentSeasonSchedule(Request $Request)
 {
     if ($Request->get('season')) {
         return $this->renderSeasonSchedule($Request->get('season'));
     }
     return $this->App['twig']->render('Track/schedule.twig', array('selectedSeason' => $this->App['service.currentSeason']->getEndYear(), 'firstSeason' => $this->MeetService->getFirstSeasonYear(), 'currentSeason' => $this->App['service.currentSeason']->getEndYear(), 'meetSchedule' => $this->MeetService->getCurrentSeasonSchedule()));
 }
コード例 #2
0
 public function getCurrentSchedule()
 {
     $data = $this->ScheduleService->getCurrentSeasonSchedule();
     return $this->App->json($data);
 }