更改页面标签(clistview,cgridview)而不更改分页css(bootstrap)


Changing page labels (clistview, cgridview) witout changing pager css (bootstrap)

当我在CGridView中设置"pager"时,它会改变引导程序的外观,我会尝试将cssFile设置为null或false,但它不起作用。

        'pager' => array(
            'class' => 'CLinkPager',
            'firstPageLabel' => '<<',
            'prevPageLabel' => 'smthprev',
            'nextPageLabel' => 'smthnext',
            'lastPageLabel' => '>>',
        ),      

Bootstrap扩展检查是否设置了htmlOptions['class'],即:isset($htmlOptions[]),所以如果我们设置了空类,那么它应该可以工作。所以加上这个:

    'pager' => array(
        // rest of code
        'htmlOptions'=>array('class'=>'')
    ),