tags:

views:

535

answers:

1

How to customize Yii CGridView Pager about its position, css, template?

A: 
  1. http://www.yiiframework.com/doc/api/CBaseListView#pager-detail
  2. http://www.yiiframework.com/doc/api/CBaseListView#pagerCssClass-detail
  3. http://www.yiiframework.com/doc/api/CLinkPager
Sam Dark
thx, I got that, but how to change the template of Pager
tq0fqeu
If you want just to customize how it looks you can use http://www.yiiframework.com/doc/api/CLinkPager#cssFile-detail to apply your own styles.These properties are specified in the array http://www.yiiframework.com/doc/api/CBaseListView#pager-detail. So property name is key, property value is value.If you want to customize markup itself or generation login it's better to create your own component that extends CLinkPager or CBasePager and specify its class as value of "class" key of CBaseListView::pager property.
Sam Dark