2017 © Pedro Peláez
 

library kohana-errors

Basic improved kohana custom error pages for CLI and web use

image

ingenerator/kohana-errors

Basic improved kohana custom error pages for CLI and web use

  • Friday, February 2, 2018
  • by acoulton
  • Repository
  • 3 Watchers
  • 3 Stars
  • 4,897 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

Kohana-errors

Just a really simple kohana module that sets custom error pages for web (outside development mode) and CLI (always)., (*1)

Installation

Add kohana-errors to your composer.json and run composer update to install it., (*2)

{
  "require": { "ingenerator/kohana-errors": "0.1.*@dev" }
}

Basic Usage

In your bootstrap:, (*3)

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, (*4)

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., (*5)

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..., (*6)

Testing and developing

There are no specs for this module, as it's very basic. Contributions are welcome., (*7)

License

config is copyright 2014 inGenerator Ltd and released under the BSD license., (*8)

The Versions

02/02 2018

dev-master

9999999-dev https://github.com/ingenerator/kohana-errors

Basic improved kohana custom error pages for CLI and web use

  Sources   Download

BSD BSD-3-Clause

The Requires

 

errors kohana

03/07 2014

0.1.1

0.1.1.0 https://github.com/ingenerator/kohana-errors

Basic improved kohana custom error pages for CLI and web use

  Sources   Download

BSD

The Requires

 

errors kohana

14/03 2014

v0.1.0

0.1.0.0 https://github.com/ingenerator/kohana-errors

Basic improved kohana custom error pages for CLI and web use

  Sources   Download

BSD

The Requires

 

errors kohana