Controller
renderNotFound()
Signature
Section titled “Signature”renderNotFound() — returns void
Available in: controller
Category: Rendering Functions
Description
Section titled “Description”Renders a 404 Not Found response from a controller action: sets the 404 status, shows the
developer-facing error in development (when showErrorInformation is on) and the
onmissingtemplate.cfm page in production. This is the public entry point that scaffolds
and app controllers call so they do not depend on the internal $throwErrorOrShow404Page,
which stays in place for apps generated by 4.1.2. Defined as a controller mixin (not a
wheels.Global helper) so it is scoped to controllers and not mixed onto models.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
message | string | no | Not Found | The developer-facing message shown in development. |
type | string | no | Wheels.RecordNotFound | The error type thrown in development. Defaults to Wheels.RecordNotFound. |
extendedInfo | string | no | — | Optional extra developer detail shown in development. |