pear2007 2016-05-11 18:44:04 2268次浏览 0条回复 0 0 0

pageSize

 public function actionIndex() { 
        $dataProvider  =new ActiveDataProvider([
        'query'=>SiteModel::find(),
 
          'pagination' => array('pageSize' => 50),
        ] );
 
        $lsearchModel = new LinkSearch();
        $ldataProvider = $lsearchModel->search(Yii::$app->request->queryParams);
        return $this->render('index', [
                    'dataProvider' => $dataProvider,
                    'ldataProvider' => $ldataProvider,
        ]);
 
    }
 
    没有找到数据。
您需要登录后才可以回复。登录 | 立即注册