Commit 79966ca6 by Qiang Xue

Pagination WIP

parent b3b8fadf
...@@ -42,14 +42,14 @@ use Yii; ...@@ -42,14 +42,14 @@ use Yii;
* View: * View:
* *
* ~~~ * ~~~
* <?php foreach($models as $model): ?> * foreach($models as $model) {
* ...display a model... * // display $model here
* <?php endforeach; ?> * }
* *
* // display pagination * // display pagination
* <?php $this->widget('yii\web\widgets\LinkPager', array( * $this->widget('yii\web\widgets\LinkPager', array(
* 'pages' => $pages, * 'pages' => $pages,
* )) ?> * ));
* ~~~ * ~~~
* *
* @property integer $pageCount Number of pages. * @property integer $pageCount Number of pages.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment