Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Use setCurrentPage, setItemCount, setPageSize in CPagination to set it up.
How the CPagination data is obtained is not important.
Example:
$pageSize = 20;
$count = News::model()->count();
$pages = new CPagination($count);
$pages->setPageSize($pageSize);
$pages->params = array();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question