复制代码 代码如下:
<span>$provider=$model->search();
$provider->pagination->pageSize=20;
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'link-grid',
'dataProvider'=>$provider,</span>
复制代码 代码如下:
return new CActiveDataProvider(get_class($this), array(
'criteria'=>$criteria,
'pagination'=>array(
'pageSize'=> 5,
),
));
复制代码 代码如下:
$dataProvider=new CActiveDataProvider('Post', array(
'pagination'=>array(
'pageSize'=>Yii::app()->params['postsPerPage'],
),
'criteria'=>$criteria,
));
新闻热点
疑难解答
图片精选