コード例 #1
0
 /**
  * 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]);
 }
コード例 #2
0
 /**
  * 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]);
 }
コード例 #3
0
ファイル: User.php プロジェクト: keltstr/yii2-podium
 public function podiumUserSearch($params, $active = false, $mods = false)
 {
     $searchModel = new UserSearch();
     $dataProvider = $searchModel->search($params, $active, $mods);
     return [$searchModel, $dataProvider];
 }