public function actionIndex()
    {
        $searchModel = new UserSearch();
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);

        $statusArray = User::getStatusArray();
        $roleArray = ArrayHelper::map(Yii::$app->authManager->getRoles(), 'name', 'description');

        return $this->render('index', [
            'searchModel' => $searchModel,
            'dataProvider' => $dataProvider,
            'statusArray' => $statusArray,
            'roleArray' => $roleArray
        ]);
    }
public function actionIndex()
    {
        $searchModel = new UserSearch();
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);

        $statusArray = User::getStatusArray();
        $roleArray = ArrayHelper::map(Yii::$app->authManager->getRoles(), 'name', 'description');

        return $this->render('index', [
            'searchModel' => $searchModel,
            'dataProvider' => $dataProvider,
            'statusArray' => $statusArray,
            'roleArray' => $roleArray
        ]);
    }
public function actionIndex ( ) { $ searchModel = new UserSearch ( ) ; $ dataProvider = $ searchModel -> search ( Yii :: $ app -> request -> queryParams ) ; $ statusArray = User :: getStatusArray ( ) ; $ roleArray = ArrayHelper :: map ( Yii :: $ app -> authManager -> getRoles ( ) , 'name' , 'description' ) ; return $ this -> render ( 'index' , [ 'searchModel' => $ searchModel , 'dataProvider' => $ dataProvider , 'statusArray' => $ statusArray , 'roleArray' => $ roleArray ] ) ; }
Users list page.
Users list page .