关于分页有一个重要的类CPagination。
CPagination represents information relevant to pagination.
http://www.yiiframework.com/doc/api/1.1/CPagination
When data needs to be rendered in multiple pages, we can use CPagination to represent information such astotal item count, page size, current page, etc. These information can be passed to pagers to render pagination buttons or links.
CLinkPager:
CLinkPager displays a list of hyperlinks that lead to different pages of target.