set_per_page()

public function set_per_page(): void

Description

Sets the number of records to display per page in the admin management view. Reads the selected index from URL segment 3, validates it against the available options, stores the preference in the session, and redirects to the manage page.

Parameters

This method accepts no parameters (uses URL segment 3 for the per‑page option index). The per‑page options array is defined in the controller (typically: 5, 10, 25, 50).

Return Value

TypeDescription
voidRedirects to the manage page.

Example Usage