Пример #1
0
 /**
  * @Secured(resource="showEventDay")
  */
 public function actionShowEventDay($year, $month, $day)
 {
     try {
         $data = $this->eventService->getForDate($year, $month, $day);
         $date = new DateTime();
         $date->setDate($year, $month, $day);
         $this->template->date = $date->format(self::DATE_FORMAT);
         $this->template->data = $data;
     } catch (Exceptions\DataErrorException $ex) {
         $this->handleDataLoad(null, "this", $ex);
     }
 }