コード例 #1
0
 /**
  * @Secured(resource="default")
  */
 public function actionDefault()
 {
     $creditAmount = null;
     $u = null;
     try {
         $u = $this->getUser()->getIdentity();
         $s = $this->seasonService->getCurrentSeason();
         $app = $this->applicationService->getUsersApplication($u, $s);
         dd($app);
         $tax = $this->taxService->getTaxSeason($s, $app->getSportGroup());
         $creditAmount = $tax->getCredit();
     } catch (Exceptions\DataErrorException $ex) {
         $this->handleDataLoad($u->getId(), null, $ex);
     }
     $this->template->creditAmount = $creditAmount;
 }
コード例 #2
0
ファイル: BasePresenter.php プロジェクト: fuca/sportsclub
 protected function createComponentSeasonInfoControl($name)
 {
     $current = null;
     $c = new SeasonInfoControl($this, $name);
     try {
         $current = $this->seasonService->getCurrentSeason();
     } catch (\App\Model\Misc\Exceptions\DataErrorException $ex) {
     }
     $c->setSeason($current);
     return $c;
 }