ErrorController
class ErrorController extends ControllerBase
Error controller
Methods
Enables path to Gryphon compatible view, if the view exists AND enableCompatibility is on.
Terminate the action with a view partial. Will dump output directly to browser, but return the action allowing process to continue.
Handle the display of error messages
Handle the display of license error messages
No description
No description
Details
in ControllerBase at line 16
initialize()
Initialize response headers
in ControllerBase at line 44
protected boolean
enableCompatibilityView(string $view)
Enables path to Gryphon compatible view, if the view exists AND enableCompatibility is on.
NOTE: This will mutate the internal view.
in ControllerBase at line 62
protected
terminateWithView(string $view, array $params = [], array $headers = [])
Terminate the action with a view partial. Will dump output directly to browser, but return the action allowing process to continue.
in ControllerBase at line 88
protected
getHttpCodeDescription($code)
in ControllerBase at line 152
protected mixed
getRequestSegments(int $i = null)
Return rewrite url segments
in ControllerBase at line 172
protected array
getJsonData()
Fetch POSTed/PUTed json data
at line 32
indexAction(string $message, int $code = 404)
Handle the display of error messages
Returns the following to the view:
- message - the error message string
- code - the error code (HTTP status code)
Looks for templates in the following order:
- error/XXX.twig - code specific
- error/index.twig
Then fails over to global templates:
- global-errors/XXX.twig - code specific
- global-errors/500.twig
at line 75
licenseAction(string $message, int $code = 500)
Handle the display of license error messages
Returns the following to the view:
- message - the error message string
Looks for templates in the following order:
- error/index.twig