\Anax\PageErrorController

A sample class for routes dealing with error situations.

Summary

Methods
Properties
Constants
setDI()
errorPage()
page403()
page404()
page500()
No public properties found
No constants found
No protected methods found
$di
N/A
No private methods found
No private properties found
N/A

Properties

$di

$di : \Anax\DI\Anax\DI\DIInterface

Type

\Anax\DI\Anax\DI\DIInterface — the DI service container.

Methods

setDI()

setDI(\Anax\DI\Anax\DI\DIInterface  $di) : self

Set the service container to use

Parameters

\Anax\DI\Anax\DI\DIInterface $di

a service container

Returns

self

errorPage()

errorPage(integer  $status, string  $title, string  $message, string  $template = null) : void

Render an error page with a message and a status code.

Parameters

integer $status

code to use for response.

string $title

to use for the page.

string $message

to display in the view.

string $template

the template file to use.

page403()

page403() : void

Render a 403 forbidden page using the default page renderer.

page404()

page404() : void

Render a 404 Page not found using the default page renderer.

page500()

page500() : void

Render a 500 Page not found using the default page renderer.