Commit 79966ca6 by Qiang Xue

Pagination WIP

parent b3b8fadf
......@@ -42,14 +42,14 @@ use Yii;
* View:
*
* ~~~
* <?php foreach($models as $model): ?>
* ...display a model...
* <?php endforeach; ?>
* foreach($models as $model) {
* // display $model here
* }
*
* // display pagination
* <?php $this->widget('yii\web\widgets\LinkPager', array(
* $this->widget('yii\web\widgets\LinkPager', array(
* 'pages' => $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