common/base/PageWidget.php
public function initPaging( $config = [] ) {

		// Init Pagination
		if( $this->pagination && $this->paging && isset( $this->dataProvider ) ) {

			$pagination = $this->dataProvider->getPagination();

			$this->pageInfo = CodeGenUtil::getPaginationDetail( $this->dataProvider );

			if( isset( $this->route ) ) {

				$pagination->route = $this->route;
			}

			if( count( $this->excludeParams ) > 0 ) {

				$pagination->excludeParams = $this->excludeParams;
			}

			$this->pageLinks = LinkPager::widget([
				'pagination' => $pagination, 'disabledPageCssClass' => 'link-disabled',
				'nextPageLabel' => $this->nextLabel, 'prevPageLabel' => $this->prevLabel
			]);
		}
	}
public function initPaging( $config = [] ) {

		// Init Pagination
		if( $this->pagination && $this->paging && isset( $this->dataProvider ) ) {

			$pagination = $this->dataProvider->getPagination();

			$this->pageInfo = CodeGenUtil::getPaginationDetail( $this->dataProvider );

			if( isset( $this->route ) ) {

				$pagination->route = $this->route;
			}

			if( count( $this->excludeParams ) > 0 ) {

				$pagination->excludeParams = $this->excludeParams;
			}

			$this->pageLinks = LinkPager::widget([
				'pagination' => $pagination, 'disabledPageCssClass' => 'link-disabled',
				'nextPageLabel' => $this->nextLabel, 'prevPageLabel' => $this->prevLabel
			]);
		}
	}
public function initPaging ( $ config = [ ] ) { // Init Pagination if ( $ this -> pagination && $ this -> paging && isset ( $ this -> dataProvider ) ) { $ pagination = $ this -> dataProvider -> getPagination ( ) ; $ this -> pageInfo = CodeGenUtil :: getPaginationDetail ( $ this -> dataProvider ) ; if ( isset ( $ this -> route ) ) { $ pagination -> route = $ this -> route ; } if ( count ( $ this -> excludeParams ) > 0 ) { $ pagination -> excludeParams = $ this -> excludeParams ; } $ this -> pageLinks = LinkPager :: widget ( [ 'pagination' => $ pagination , 'disabledPageCssClass' => 'link-disabled' , 'nextPageLabel' => $ this -> nextLabel , 'prevPageLabel' => $ this -> prevLabel ] ) ; } }
Initialise paging if applicable.
Initialise paging if applicable .