Пример #1
0
 /**
  * @Secured(resource="default")
  */
 public function actionDefault($abbr = self::ROOT_GROUP)
 {
     $data = null;
     try {
         if (is_string($abbr)) {
             $sg = $this->sportGroupService->getSportGroupAbbr($abbr);
         } elseif (is_numeric($abbr)) {
             $sg = $this->sportGroupService->getSportGroup($abbr);
         }
         $data = $this->eventService->getEvents($sg);
     } catch (Exceptions\DataErrorException $ex) {
         $this->handleDataLoad($abbr, "default", $ex);
     }
     $this->template->data = $data;
     $this->template->commentable = true;
 }