The Pagination Module

The Pagination Module provides a complete pagination solution for Trongate applications. It renders navigation links (First, Previous, numbered pages, Next, Last) with fully customisable HTML wrapping, accessibility ARIA labels, and an optional "Showing X to Y of Z" statement. The module auto-detects the current page from the URL and can automatically determine the pagination root when none is specified.

Comprehensive guidance for this module can be found in the Pagination Chapter of the Trongate PHP framework documentation.

display()

Renders pagination navigation controls with optional "Showing" statement. This method processes the pagination configuration through the model layer for validation, then outputs the complete pagination HTML. The method handles all link types - First, Previous, numbered pages, Next, and Last - with automatically detected or explicitly specified URL roots.