Table Pagination Displayed Count

Hello guys,

i have a question, is it possible to show 5 instead of 10 pages in TablePagination?

Best regards,

Edgar

Yes, you can do that. Use

pageSize in CActiveDataProvider as




   'pagination'=>array(

                'pageSize'=>6

          )



By the way, Yii pagination provides very powerful functions, you can get page information such as total item count, page size, current page, etc. These information can be passed to pagers to render pagination buttons or links.

See more details at:

http://www.yiiframework.com/doc/api/1.1/CPagination/#setPageSize-detail