From 067c00843ae934eb4668310b95719203dffb4831 Mon Sep 17 00:00:00 2001 From: resurtm Date: Tue, 9 Jul 2013 20:23:04 +0600 Subject: [PATCH] Pagination doc fix. --- framework/yii/data/Pagination.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/data/Pagination.php b/framework/yii/data/Pagination.php index 18cfff8..da93518 100644 --- a/framework/yii/data/Pagination.php +++ b/framework/yii/data/Pagination.php @@ -28,7 +28,7 @@ use yii\base\Object; * { * $query = Article::find()->where(array('status' => 1)); * $countQuery = clone $query; - * $pages = new Pagination($countQuery->count()); + * $pages = new Pagination(array('itemCount' => $countQuery->count())); * $models = $query->offset($pages->offset) * ->limit($pages->limit) * ->all();