如何在YII上设置CGridView的分页样式?

Thu*_* Ra 3 php yii

如何在YII上设置CGridView的分页样式?

在cgridview中,它按照图片显示寻呼机.

我想通过以下方式显示寻呼机位置.

首页上一页1 2 3 4 5 6 7 8 9 10下一页尾页

我想删除"转到页面:".

我应该怎么做?

在此输入图像描述

Jon*_*Jon 6

只需将header寻呼机的属性设置为空字符串即可.

例:

$this->widget('zii.widgets.CGridView', array(
        // ...other properties here...
        'pager' => array('class' => 'CLinkPager', 'header' => ''),
    ));
Run Code Online (Sandbox Code Playgroud)