/** * @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())); }
public function getCurrentSchedule() { $data = $this->ScheduleService->getCurrentSeasonSchedule(); return $this->App->json($data); }