lorenzoferrarajr / lfj-error-layout
There is no license information available for the latest version (v1.0.1) of this package.
LfjErrorLayout is a ZF2 module that allows you to use an alternative layout when a dispatch errors occur.
v1.0.1
2014-02-04 19:39 UTC
Requires
- php: >=5.3
This package is not auto-updated.
Last update: 2024-12-21 15:08:41 UTC
README
Version 1.0 Created By Lorenzo Ferrara Junior
Introduction
LfjErrorLayout is a ZF2 module that allows you to use an alternative layout when a dispatch errors occur.
Usage
To enable the module just add it to your application.config.php
file.
Note that you must add it before any other module or your custom configuration options could be replaced with the default ones!
Configuration
Optionally, you can configure your custom layout/error
, error/404
and error/index
paths in the view_manager option in any module configuration:
return array( [...] 'view_manager' => array( [...] 'layout/error' => __DIR__ . '/../view/layout/error.phtml', 'error/404' => __DIR__ . '/../view/error/404.phtml', 'error/index' => __DIR__ . '/../view/error/index.phtml', [...] ) [...] );