Yii CListView和CGridView禁用ajax


CListView的实现:

$this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
    'pagerCssClass'=>'pagelist',
    'itemsTagName'=>'ul',
    'ajaxUpdate'=>false,//禁用ajax
    ));

CGridView的实现:

$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'info-grid',
'dataProvider'=>$model->search(),
'ajaxUpdate'=>false,    //禁用AJAX
'columns'=>array(
),
),
);
普人特福的博客cnzz&51la for wordpress,cnzz for wordpress,51la for wordpress