Commit 067c0084 by resurtm

Pagination doc fix.

parent 0affeb1f
......@@ -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();
......
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