Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The index number starts from the beginning on the second page because the Paginator class is designed to show a subset of data from a larger dataset. Each page displays a fixed number of items (usually 10 or 20) and the index number represents the position of each item within the entire dataset, not just within the current page. Therefore, when moving to the second page, the index must start again from the beginning of the subset displayed on that page.