Commit d798cc79 by Qiang Xue

Set totalCount.

parent fe58cbd5
......@@ -81,6 +81,7 @@ class ArrayDataProvider extends BaseDataProvider
}
if (($pagination = $this->getPagination()) !== false) {
$pagination->totalCount = $this->getTotalCount();
$models = array_slice($models, $pagination->getOffset(), $pagination->getLimit());
}
......
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