Skip to content

Controller

setPagination()

setPagination() — returns void

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

Allows you to set a pagination handle for a custom query so you can perform pagination on it in your view with paginationLinks.

NameTypeRequiredDefaultDescription
totalRecordsnumericyesTotal count of records that should be represented by the paginated links.
currentPagenumericno1Page number that should be represented by the data being fetched and the paginated links.
perPagenumericno25Number of records that should be represented on each page of data.
handlestringnoqueryName of handle to reference in paginationLinks.