Table Pagination Displayed Count

Hello guys,

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

Best regards,


Yes, you can do that. Use

pageSize in CActiveDataProvider as




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: