Example #1
0
 public function actionScoreboard()
 {
     if (isset($_GET['blank'])) {
         $this->layout = "blank";
     }
     $dataProvider = new ActiveDataProvider(['query' => Scoreboard::find(), 'pagination' => ['pageSize' => 20]]);
     return $this->render('user_scoreboard', ['dataProvider' => $dataProvider]);
 }
 public function actionScoreboard()
 {
     $dataProvider = new ActiveDataProvider(['query' => Scoreboard::find()]);
     return $this->render('scoreboard', ['dataProvider' => $dataProvider]);
 }