pagination()
Description
Returns a struct with information about the specificed paginated query. The variables that will be returned are currentPage, totalPages and totalRecords.
Function Syntax
pagination([ handle ])
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
handle |
string |
No | query |
The handle given to the query to return pagination information for. |
Examples
<cfparam name="params.page" default="1">
<cfset allAuthors = model("author").findAll(page=params.page, perPage=25, order="lastName", handle="authorsData")>
<cfset paginationData = pagination("authorsData")>
