not_found()

public function not_found(): void

Description

Renders a "Record Not Found" page with a descriptive message and a "Go Back" link. Called internally when a requested record doesn't exist or has been deleted.

Parameters

This method accepts no parameters.

Return Value

TypeDescription
voidOutput rendered via the admin template.

Example Usage

PHP
// Called automatically when a record is not found
$record_data = $this->model->get_data_from_db($update_id);
if ($record_data === false) {
    $this->not_found();
    return;
}

// Manual redirect from another controller
if (!$user_exists) {
    redirect('trongate_administrators/not_found');
}

// The page displays:
// Headline: "Record Not Found"
// Message: "The record you're looking for doesn't exist or has been deleted."
// Button: "Go Back" linking to the manage page