Classes

Class ErrorPage

ErrorPage holds the content for the page of an error response. Renders the
page on each publish action into a static HTML file within the assets directory,
after the naming convention /assets/error-<statuscode>.html. This enables
us to show errors even if PHP experiences a recoverable error. ErrorPages

Methods summary

Parameters

Returns

Get a SS_HTTPResponse to response to a HTTP error code if an ErrorPage for that code is present. First tries to serve it through the
standard SilverStripe request method. Falls back to a static file generated when
the user hit's save and publish in the CMS

Get a SS_HTTPResponse to response to a HTTP error code if an ErrorPage for that code is present. First tries to serve it through the
standard SilverStripe request method. Falls back to a static file generated when
the user hit's save and publish in the CMS

Deprecated

Parameters

Deprecated

3.2 Use "ErrorPage.static_file_path" instead

Returns

stringstring

Magic methods summary

Comments

Comment policy: Please use comments for tips and corrections about the described
functionality. Comments are moderated, we reserve the right to remove comments that are inappropriate or are no longer relevant.
Use the Silverstripe Forum to ask questions.