public function buttonLoadMore($targetSelector = null) {
		$result = '';
		if (empty($targetSelector)) {
			$targetSelector = 'table tbody';
		}

		$hasNext = $this->Paginator->hasNext();
		if (!$hasNext) {
			$paginatorParams = $this->Paginator->params();
			$count = (int)Hash::get($paginatorParams, 'count');
			$records = __dn('view_extension', 'record', 'records', $count);
			$result = $this->Html->div(
				'load-more',
				$this->Html->para('small', $this->Paginator->counter(__d('view_extension', 'Showing {:count} %s', $records)))
			);

			return $result;
		}

		$urlPaginator = [];
		if (isset($this->Paginator->options['url'])) {
			$urlPaginator = (array)$this->Paginator->options['url'];
		}
		$paginatorParams = $this->Paginator->params();
		$count = (int)Hash::get($paginatorParams, 'count');
		$page = (int)Hash::get($paginatorParams, 'page');
		$limit = (int)Hash::get($paginatorParams, 'limit');
		$urlLoadMore = $this->Paginator->url(['page' => $page + 1, 'show' => 'list'], true);
		$urlLoadMore = array_merge($urlPaginator, $urlLoadMore);
		$btnClass = $this->getBtnClass('btn-default btn-sm');
		$btnClass .= ' btn-block';
		$startRecord = 0;
		if ($count >= 1) {
			$startRecord = (($page - 1) * $limit) + 1;
		}
		$endRecord = $startRecord + $limit - 1;
		$records = __dn('view_extension', 'record', 'records', $endRecord);
		$result = $this->Html->div(
			'load-more',
			$this->Html->para('small', $this->Paginator->counter(
				__d('view_extension', 'Current loaded page {:page} of {:pages}, showing {:end} %s of {:count} total', $records)
			)) .
			$this->Html->link(
				$this->_getOptionsForElem('loadMore.linkTitle'),
				$urlLoadMore,
				[
					'class' => $btnClass . ' hidden-print',
					'data-target-selector' => $targetSelector,
				] + $this->_getOptionsForElem('loadMore.linkOpt')
			)
		);

		return $result;
	}
public function buttonLoadMore($targetSelector = null) {
		$result = '';
		if (empty($targetSelector)) {
			$targetSelector = 'table tbody';
		}

		$hasNext = $this->Paginator->hasNext();
		if (!$hasNext) {
			$paginatorParams = $this->Paginator->params();
			$count = (int)Hash::get($paginatorParams, 'count');
			$records = __dn('view_extension', 'record', 'records', $count);
			$result = $this->Html->div(
				'load-more',
				$this->Html->para('small', $this->Paginator->counter(__d('view_extension', 'Showing {:count} %s', $records)))
			);

			return $result;
		}

		$urlPaginator = [];
		if (isset($this->Paginator->options['url'])) {
			$urlPaginator = (array)$this->Paginator->options['url'];
		}
		$paginatorParams = $this->Paginator->params();
		$count = (int)Hash::get($paginatorParams, 'count');
		$page = (int)Hash::get($paginatorParams, 'page');
		$limit = (int)Hash::get($paginatorParams, 'limit');
		$urlLoadMore = $this->Paginator->url(['page' => $page + 1, 'show' => 'list'], true);
		$urlLoadMore = array_merge($urlPaginator, $urlLoadMore);
		$btnClass = $this->getBtnClass('btn-default btn-sm');
		$btnClass .= ' btn-block';
		$startRecord = 0;
		if ($count >= 1) {
			$startRecord = (($page - 1) * $limit) + 1;
		}
		$endRecord = $startRecord + $limit - 1;
		$records = __dn('view_extension', 'record', 'records', $endRecord);
		$result = $this->Html->div(
			'load-more',
			$this->Html->para('small', $this->Paginator->counter(
				__d('view_extension', 'Current loaded page {:page} of {:pages}, showing {:end} %s of {:count} total', $records)
			)) .
			$this->Html->link(
				$this->_getOptionsForElem('loadMore.linkTitle'),
				$urlLoadMore,
				[
					'class' => $btnClass . ' hidden-print',
					'data-target-selector' => $targetSelector,
				] + $this->_getOptionsForElem('loadMore.linkOpt')
			)
		);

		return $result;
	}
public function buttonLoadMore ( $ targetSelector = null ) { $ result = '' ; if ( empty ( $ targetSelector ) ) { $ targetSelector = 'table tbody' ; } $ hasNext = $ this -> Paginator -> hasNext ( ) ; if ( ! $ hasNext ) { $ paginatorParams = $ this -> Paginator -> params ( ) ; $ count = ( int ) Hash :: get ( $ paginatorParams , 'count' ) ; $ records = __dn ( 'view_extension' , 'record' , 'records' , $ count ) ; $ result = $ this -> Html -> div ( 'load-more' , $ this -> Html -> para ( 'small' , $ this -> Paginator -> counter ( __d ( 'view_extension' , 'Showing {:count} %s' , $ records ) ) ) ) ; return $ result ; } $ urlPaginator = [ ] ; if ( isset ( $ this -> Paginator -> options [ 'url' ] ) ) { $ urlPaginator = ( array ) $ this -> Paginator -> options [ 'url' ] ; } $ paginatorParams = $ this -> Paginator -> params ( ) ; $ count = ( int ) Hash :: get ( $ paginatorParams , 'count' ) ; $ page = ( int ) Hash :: get ( $ paginatorParams , 'page' ) ; $ limit = ( int ) Hash :: get ( $ paginatorParams , 'limit' ) ; $ urlLoadMore = $ this -> Paginator -> url ( [ 'page' => $ page + 1 , 'show' => 'list' ] , true ) ; $ urlLoadMore = array_merge ( $ urlPaginator , $ urlLoadMore ) ; $ btnClass = $ this -> getBtnClass ( 'btn-default btn-sm' ) ; $ btnClass .= ' btn-block' ; $ startRecord = 0 ; if ( $ count >= 1 ) { $ startRecord = ( ( $ page - 1 ) * $ limit ) + 1 ; } $ endRecord = $ startRecord + $ limit - 1 ; $ records = __dn ( 'view_extension' , 'record' , 'records' , $ endRecord ) ; $ result = $ this -> Html -> div ( 'load-more' , $ this -> Html -> para ( 'small' , $ this -> Paginator -> counter ( __d ( 'view_extension' , 'Current loaded page {:page} of {:pages}, showing {:end} %s of {:count} total' , $ records ) ) ) . $ this -> Html -> link ( $ this -> _getOptionsForElem ( 'loadMore.linkTitle' ) , $ urlLoadMore , [ 'class' => $ btnClass . ' hidden-print' , 'data-target-selector' => $ targetSelector , ] + $ this -> _getOptionsForElem ( 'loadMore.linkOpt' ) ) ) ; return $ result ; }
Return controls of pagination as button `Load more`.

@param string $targetSelector jQuery selector to select data
from server response and selection of the element on the
page to add new data.
@return string Return button `Load more`.
Return controls of pagination as button Load more .