ingenerator / kohana-errors
Basic improved kohana custom error pages for CLI and web use
Installs: 11 085
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: >=5.3.3
- kohana/core: 3.3.*
- kohana/minion: 3.3.*
This package is auto-updated.
Last update: 2020-02-14 01:16:21 UTC
README
Just a really simple kohana module that sets custom error pages for web (outside development mode) and CLI (always).
Installation
Add kohana-errors to your composer.json and run composer update
to install it.
{ "require": { "ingenerator/kohana-errors": "0.1.*@dev" } }
Basic Usage
In your bootstrap:
Kohana::modules(array('kohana-errors' => BASEDIR.'vendor/ingenerator/kohana-errors');
To further customise the error page, create a view file at APPATH.views/errors/web_generic_error.php or APPATH.views/errors/cli_generic_error.php
Bear in mind that the custom error page will only be applied after your application has loaded the module - so you still risk another error page showing if there are failures during very early bootstrapping of your application.
Best practice is to configure your apache/nginx to show a custom static error page on fatal errors, rather than trusting PHP to get it right...
Testing and developing
There are no specs for this module, as it's very basic. Contributions are welcome.
License
config is copyright 2014 inGenerator Ltd and released under the BSD license.