Пример #1
0
 /**
  * Lists all User models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new UserSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
Пример #2
0
 /**
  * Users list
  *
  * @return mixed
  */
 public function actionIndex()
 {
     $model = new UserSearch();
     $dataProvider = $model->search(Yii::$app->request->get());
     return $this->render('index', ['model' => $model, 'dataProvider' => $dataProvider]);
 }