yii\widgets\BaseListView::renderPager PHP 메소드

renderPager() 공개 메소드

Renders the pager.
public renderPager ( ) : string
리턴 string the rendering result
    public function renderPager()
    {
        $pagination = $this->dataProvider->getPagination();
        if ($pagination === false || $this->dataProvider->getCount() <= 0) {
            return '';
        }
        /* @var $class LinkPager */
        $pager = $this->pager;
        $class = ArrayHelper::remove($pager, 'class', LinkPager::className());
        $pager['pagination'] = $pagination;
        $pager['view'] = $this->getView();
        return $class::widget($pager);
    }