Advertisement
Guest User

Untitled

a guest
Feb 4th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. public function actionView($id)
  2.     {
  3.         $model = $this->findModel($id);
  4.         $conf = unserialize($model->conf);
  5.         $active = [];
  6.  
  7.  
  8.         # Playoff
  9.        if($model->status == Tour::STATUS_GO AND $conf['type'] == TourSetting::TYPE_PLAYOFF) {
  10.             $active['playoff'] = true;
  11.             $playoff = new TourPlayoff();
  12.             $playoff->tourId = $id;
  13.             $playoff->getData();
  14.         } else {
  15.             $playoff = [];
  16.         }
  17.  
  18.  
  19.         return $this->render('view', [
  20.             'conf' => $conf,
  21.             'model' => $model,
  22.          
  23.             'playoff' => $playoff,
  24.             'active' => $active,
  25.         ]);
  26.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement