/application/helpers/pagination.php

Description
Functions
advanced_pagination (line 48)

Advanced pagination. Differenced between simple and advanced paginations is that advanced pagination uses template so its output can be changed in a great number of ways.

All variables are just passed to the template, nothing is done inside the function!

  • access: public
null advanced_pagination (DataPagination $pagination, string $url_base, [string $template = 'advanced_pagination'], [string $page_placeholder = '#PAGE#'])
  • DataPagination $pagination: Pagination object
  • string $url_base: Base URL in witch we will insert current page number
  • string $template: Template that will be used. It can be absolute path to existing file or template name that used with get_template_path will return real template path
  • string $page_placeholder: Short string inside of $url_base that will be replaced with current page numer
simple_pagination (line 17)

Render simple pagination (links to pages spearated with commas). Example:

simple_pages($pager, 'http://www.google.com?page=#PAGE#', '#PAGE#');

  • access: public
string simple_pagination (DataPagination $pagination, string $url_base, [string $page_placeholder = '#PAGE#'], [string $separator = ', '])
  • DataPagination $pagination: Pagination object
  • string $url_base: Base URL where $page_placeholder will be replaced with current page number
  • string $page_placeholder: Short string inside of $url_base witch will be replaced with current page number
  • string $separator: String that will separate page URLs

Documentation generated on Wed, 23 Jan 2008 01:58:59 +0000 by phpDocumentor 1.4.0