src/controllers/Z1UserController.php
public function actionIndex()
    {
        $searchModel = new Z1UserSearch();
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);

        $pageSize = intval(trim(Yii::$app->request->get('per-page')));

        if ($pageSize) {
            $dataProvider->pagination->pageSize = $pageSize;
        }

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

        $pageSize = intval(trim(Yii::$app->request->get('per-page')));

        if ($pageSize) {
            $dataProvider->pagination->pageSize = $pageSize;
        }

        return $this->render('index', [
            'searchModel' => $searchModel,
            'dataProvider' => $dataProvider,
        ]);
    }
public function actionIndex ( ) { $ searchModel = new Z1UserSearch ( ) ; $ dataProvider = $ searchModel -> search ( Yii :: $ app -> request -> queryParams ) ; $ pageSize = intval ( trim ( Yii :: $ app -> request -> get ( 'per-page' ) ) ) ; if ( $ pageSize ) { $ dataProvider -> pagination -> pageSize = $ pageSize ; } return $ this -> render ( 'index' , [ 'searchModel' => $ searchModel , 'dataProvider' => $ dataProvider , ] ) ; }
Lists all Z1User models.
@return mixed
Lists all Z1User models .