Difference between revisions of "Functions:pagination"

From Whirlwind eCommerce Wiki
Jump to: navigation, search
(New page: == Description == pagination() returns data and content to easily 'paginate' large data lists == Syntax == $pagination = eV::pagination($totalCount,$itemsPerPage,$pageNo,$link); == Param...)
(No difference)

Revision as of 20:39, 3 December 2008

Description

pagination() returns data and content to easily 'paginate' large data lists

Syntax

$pagination = eV::pagination($totalCount,$itemsPerPage,$pageNo,$link);

Paramaters

  • $totalCount
total number of items in the entire list to be paginated
  • $itemsPerPage
number of items to display on each pagination page
  • $pageNo
the current page number
  • $link
the base url to be used for each pagination link. This will automatically be appended with "&pageNo=#" for the appropriate page number for the link selected.

Return Values

Returns an associative array containing content output and list item indexes to be used to manage pagination. Below is the returned array:

Array
(
    [links] => String
    [startIndex] => INT
    [endIndex] => INT
)

Examples

example 1

example 1 goes here

example 2

example 2 goes here

See Also