Browse Source

hide summary when empty.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
183a0bfaef
  1. 3
      framework/yii/widgets/BaseListView.php

3
framework/yii/widgets/BaseListView.php

@ -147,6 +147,9 @@ abstract class BaseListView extends Widget
public function renderSummary()
{
$count = $this->dataProvider->getCount();
if ($count <= 0) {
return '';
}
if (($pagination = $this->dataProvider->getPagination()) !== false) {
$totalCount = $this->dataProvider->getTotalCount();
$begin = $pagination->getPage() * $pagination->pageSize + 1;

Loading…
Cancel
Save