ErrorPageController
class ErrorPageController extends PageController (View source)
Controller for ErrorPages.
Methods
Explicitly set themes to the themes config value in case the theme was previously set to something else One example of this is when serving 404 error pages under the admin path e.g. admin/non-existent where LeftAndMain::init() will have previously set themes to the admin_themes config
Overload the provided Controller::handleRequest() to append the correct status code post request since otherwise permission related error pages such as 401 and 403 pages won't be rendered due to {@link HTTPResponse::isFinished() ignoring the response body.
Details
protected
init()
Explicitly set themes to the themes config value in case the theme was previously set to something else One example of this is when serving 404 error pages under the admin path e.g. admin/non-existent where LeftAndMain::init() will have previously set themes to the admin_themes config
HTTPResponse
handleRequest(HTTPRequest $request)
Overload the provided Controller::handleRequest() to append the correct status code post request since otherwise permission related error pages such as 401 and 403 pages won't be rendered due to {@link HTTPResponse::isFinished() ignoring the response body.