/**
  * Listing the users.
  * @return string
  */
 public function actionMembers()
 {
     $searchModel = new UserSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->get());
     return $this->render('members', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }
 /**
  * Listing the moderation team.
  * @return string
  */
 public function actionMods()
 {
     $searchModel = new UserSearch();
     return $this->render('mods', ['dataProvider' => $searchModel->search(Yii::$app->request->get(), true, true), 'searchModel' => $searchModel]);
 }
Exemple #3
0
 public function podiumUserSearch($params, $active = false, $mods = false)
 {
     $searchModel = new UserSearch();
     $dataProvider = $searchModel->search($params, $active, $mods);
     return [$searchModel, $dataProvider];
 }