Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function actionView($id)
- {
- $model = $this->findModel($id);
- $conf = unserialize($model->conf);
- $active = [];
- # Playoff
- if($model->status == Tour::STATUS_GO AND $conf['type'] == TourSetting::TYPE_PLAYOFF) {
- $active['playoff'] = true;
- $playoff = new TourPlayoff();
- $playoff->tourId = $id;
- $playoff->getData();
- } else {
- $playoff = [];
- }
- return $this->render('view', [
- 'conf' => $conf,
- 'model' => $model,
- 'playoff' => $playoff,
- 'active' => $active,
- ]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement