예제 #1
0
 public function scheduleGrid($friendly_name)
 {
     $eventApi = $this->getEventApi();
     $event = $eventApi->getByFriendlyUrl($friendly_name);
     if (!$event) {
         $this->redirectToListPage();
     }
     setcookie('schedule-view', 'grid', strtotime('+2 years'), '/');
     $talkApi = $this->getTalkApi();
     $scheduler = new EventScheduler($talkApi);
     $schedule = $scheduler->getScheduleData($event);
     $this->render('Event/schedule-grid.html.twig', array('event' => $event, 'eventDays' => $schedule));
 }
예제 #2
0
 public function schedule($friendly_name)
 {
     $eventApi = $this->getEventApi();
     $event = $eventApi->getByFriendlyUrl($friendly_name);
     if (!$event) {
         $this->redirectToListPage();
     }
     $cache = $this->getCache();
     $talkApi = $this->getTalkApi();
     $scheduler = new EventScheduler($talkApi);
     $schedule = $scheduler->getScheduleData($event);
     $this->render('Event/schedule.html.twig', array('event' => $event, 'eventDays' => $schedule));
 }