controllers/AppController.php
/**
     * Lists all Users models.
     * @return mixed
     */
Lists all Users models.
@return mixed
Lists all Users models . @return mixed
public function actionShow()
    {
        $dataProvider = new ActiveDataProvider([
            'query' => User::find(),
        ]);
        $dataProvider->setPagination(['pageSize' => 5]);
        return $this->render('show', [
            'dataProvider' => $dataProvider,
        ], false,true);
    }
public function actionShow ( ) { $ dataProvider = new ActiveDataProvider ( [ 'query' => User :: find ( ) , ] ) ; $ dataProvider -> setPagination ( [ 'pageSize' => 5 ] ) ; return $ this -> render ( 'show' , [ 'dataProvider' => $ dataProvider , ] , false , true ) ; }
Lists all Users models.
Lists all Users models .