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.