View/Helper/TableHelper.php
public function _renderPagination($options) {
		if ($this->Paginator->request->params['paging'][$this->Paginator->defaultModel()]['pageCount'] < 2) {
			return '';
		}

		if (CakePlugin::loaded('TwitterBootstrap')) {
		}

		$out = array();

		$paginate = $options['paginate'];
		$prev = $paginate['prev'];
		$next = $paginate['next'];

		$this->Paginator->options($paginate['attrs']);

		$after = false !== $paginate['divOptions'] ? "\n\t" : "\n\t\t\t";
		$glue = false !== $paginate['divOptions'] ? "\n\t" : "\n\t\t\t";
		$before = '';
		if (CakePlugin::loaded('TwitterBootstrap')) {
			$glue .= "\t";
			$before .= "\n";
			$paginate['numbers']['separator'] = $after . "\t";
			// Hack for the `BootstrapPaginatorHelper::prev()` and `BootstrapPaginatorHelper::next()` to apply the correct `class`.
			$prev['options']['disabled'] = $prev['disabledOptions']['class'];
			$next['options']['disabled'] = $next['disabledOptions']['class'];
		}

		$out[] = $this->Paginator->prev($prev['title'], $prev['options'], $prev['disabledTitle'], $prev['disabledOptions']);
		$out[] = $this->Paginator->numbers($paginate['numbers']);
		$out[] = $this->Paginator->next($next['title'], $next['options'], $next['disabledTitle'], $next['disabledOptions']);

		$out = $glue . implode($glue, $out);
		if (CakePlugin::loaded('TwitterBootstrap') || CakePlugin::loaded('BoostCake')) {
			if (!isset($paginate['ulOptions'])) {
				$paginate['ulOptions'] = array('class' => 'pagination');
			}
			$out = $this->Html->tag('ul', $out . $after, $paginate['ulOptions']);
		}

		if (false !== $paginate['divOptions']) {
			return $this->Html->useTag('block', $this->_parseAttributes($paginate['divOptions']), $before . "\t" . $out . "\n");
		}

		return "\t" . $this->Html->useTag(
			'tablerow',
			$this->_parseAttributes($paginate['trOptions']),
			"\n\t\t" . $this->Html->useTag(
				'tablecell',
				$this->_parseAttributes(array_merge($paginate['tdOptions'], array('colspan' => count($options['columns'])))),
				$before . "\t\t\t" . $out . "\n\t\t"
			) . "\n\t"
		);
	}
public function _renderPagination($options) {
		if ($this->Paginator->request->params['paging'][$this->Paginator->defaultModel()]['pageCount'] < 2) {
			return '';
		}

		if (CakePlugin::loaded('TwitterBootstrap')) {
		}

		$out = array();

		$paginate = $options['paginate'];
		$prev = $paginate['prev'];
		$next = $paginate['next'];

		$this->Paginator->options($paginate['attrs']);

		$after = false !== $paginate['divOptions'] ? "\n\t" : "\n\t\t\t";
		$glue = false !== $paginate['divOptions'] ? "\n\t" : "\n\t\t\t";
		$before = '';
		if (CakePlugin::loaded('TwitterBootstrap')) {
			$glue .= "\t";
			$before .= "\n";
			$paginate['numbers']['separator'] = $after . "\t";
			// Hack for the `BootstrapPaginatorHelper::prev()` and `BootstrapPaginatorHelper::next()` to apply the correct `class`.
			$prev['options']['disabled'] = $prev['disabledOptions']['class'];
			$next['options']['disabled'] = $next['disabledOptions']['class'];
		}

		$out[] = $this->Paginator->prev($prev['title'], $prev['options'], $prev['disabledTitle'], $prev['disabledOptions']);
		$out[] = $this->Paginator->numbers($paginate['numbers']);
		$out[] = $this->Paginator->next($next['title'], $next['options'], $next['disabledTitle'], $next['disabledOptions']);

		$out = $glue . implode($glue, $out);
		if (CakePlugin::loaded('TwitterBootstrap') || CakePlugin::loaded('BoostCake')) {
			if (!isset($paginate['ulOptions'])) {
				$paginate['ulOptions'] = array('class' => 'pagination');
			}
			$out = $this->Html->tag('ul', $out . $after, $paginate['ulOptions']);
		}

		if (false !== $paginate['divOptions']) {
			return $this->Html->useTag('block', $this->_parseAttributes($paginate['divOptions']), $before . "\t" . $out . "\n");
		}

		return "\t" . $this->Html->useTag(
			'tablerow',
			$this->_parseAttributes($paginate['trOptions']),
			"\n\t\t" . $this->Html->useTag(
				'tablecell',
				$this->_parseAttributes(array_merge($paginate['tdOptions'], array('colspan' => count($options['columns'])))),
				$before . "\t\t\t" . $out . "\n\t\t"
			) . "\n\t"
		);
	}
public function _renderPagination ( $ options ) { if ( $ this -> Paginator -> request -> params [ 'paging' ] [ $ this -> Paginator -> defaultModel ( ) ] [ 'pageCount' ] < 2 ) { return '' ; } if ( CakePlugin :: loaded ( 'TwitterBootstrap' ) ) { } $ out = array ( ) ; $ paginate = $ options [ 'paginate' ] ; $ prev = $ paginate [ 'prev' ] ; $ next = $ paginate [ 'next' ] ; $ this -> Paginator -> options ( $ paginate [ 'attrs' ] ) ; $ after = false !== $ paginate [ 'divOptions' ] ? "\n\t" : "\n\t\t\t" ; $ glue = false !== $ paginate [ 'divOptions' ] ? "\n\t" : "\n\t\t\t" ; $ before = '' ; if ( CakePlugin :: loaded ( 'TwitterBootstrap' ) ) { $ glue .= "\t" ; $ before .= "\n" ; $ paginate [ 'numbers' ] [ 'separator' ] = $ after . "\t" ; // Hack for the `BootstrapPaginatorHelper::prev()` and `BootstrapPaginatorHelper::next()` to apply the correct `class`. $ prev [ 'options' ] [ 'disabled' ] = $ prev [ 'disabledOptions' ] [ 'class' ] ; $ next [ 'options' ] [ 'disabled' ] = $ next [ 'disabledOptions' ] [ 'class' ] ; } $ out [ ] = $ this -> Paginator -> prev ( $ prev [ 'title' ] , $ prev [ 'options' ] , $ prev [ 'disabledTitle' ] , $ prev [ 'disabledOptions' ] ) ; $ out [ ] = $ this -> Paginator -> numbers ( $ paginate [ 'numbers' ] ) ; $ out [ ] = $ this -> Paginator -> next ( $ next [ 'title' ] , $ next [ 'options' ] , $ next [ 'disabledTitle' ] , $ next [ 'disabledOptions' ] ) ; $ out = $ glue . implode ( $ glue , $ out ) ; if ( CakePlugin :: loaded ( 'TwitterBootstrap' ) || CakePlugin :: loaded ( 'BoostCake' ) ) { if ( ! isset ( $ paginate [ 'ulOptions' ] ) ) { $ paginate [ 'ulOptions' ] = array ( 'class' => 'pagination' ) ; } $ out = $ this -> Html -> tag ( 'ul' , $ out . $ after , $ paginate [ 'ulOptions' ] ) ; } if ( false !== $ paginate [ 'divOptions' ] ) { return $ this -> Html -> useTag ( 'block' , $ this -> _parseAttributes ( $ paginate [ 'divOptions' ] ) , $ before . "\t" . $ out . "\n" ) ; } return "\t" . $ this -> Html -> useTag ( 'tablerow' , $ this -> _parseAttributes ( $ paginate [ 'trOptions' ] ) , "\n\t\t" . $ this -> Html -> useTag ( 'tablecell' , $ this -> _parseAttributes ( array_merge ( $ paginate [ 'tdOptions' ] , array ( 'colspan' => count ( $ options [ 'columns' ] ) ) ) ) , $ before . "\t\t\t" . $ out . "\n\t\t" ) . "\n\t" ) ; }
Render table's pagination row.

@param array $options Table's options.
@return string Table's pagination HTML.
Render table s pagination row .