Skip to content

Controller

pagination()

pagination() — returns struct

Available in: controller, model, mapper, migrator, migration, tabledefinition Category: Pagination Functions

Returns a struct with information about the specified paginated query. The keys that will be included in the struct are currentPage, totalPages and totalRecords.

NameTypeRequiredDefaultDescription
handlestringnoqueryThe handle given to the query to return pagination information for.