コード例 #1
0
 public function actionShowRatings($id)
 {
     $modelFantasy = new PokerFantasy();
     //$model = $modelFantasy->getFantasyInfo($id);
     $model = $modelFantasy->loadFantasyInfo($id);
     //echo'<pre>';print_r($model->name);echo'</pre>';die;
     if ($model === false) {
         return;
     }
     $DraftModel = new PokerDraft();
     $rates_list = $DraftModel->getRatesListWithResults([$id]);
     //echo'<pre>';print_r($rates_list);echo'</pre>';//die;
     //echo'<pre>';print_r($model);echo'</pre>';die;
     $params = PokerParams::loadParams();
     $prizes = PrizeMatrix::getPrizesForFantasy($model);
     //echo'<pre>';print_r($prizes);echo'</pre>';//die;
     return $this->renderPartial('/common/show-ratings', ['model' => $model, 'rates_list' => $rates_list, 'params' => $params, 'prizes' => $prizes, 'game_id' => GamesParams::GAME_POKER, 'game_name' => GamesParams::GAME_POKER_NAME]);
 }