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