From 79966ca69a6644393cdd10b035cef43b05145511 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 5 Mar 2013 08:46:03 -0500 Subject: [PATCH] Pagination WIP --- framework/web/Pagination.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/web/Pagination.php b/framework/web/Pagination.php index 72b1e09..55c517b 100644 --- a/framework/web/Pagination.php +++ b/framework/web/Pagination.php @@ -42,14 +42,14 @@ use Yii; * View: * * ~~~ - * - * ...display a model... - * + * foreach($models as $model) { + * // display $model here + * } * * // display pagination - * widget('yii\web\widgets\LinkPager', array( + * $this->widget('yii\web\widgets\LinkPager', array( * 'pages' => $pages, - * )) ?> + * )); * ~~~ * * @property integer $pageCount Number of pages.