dev-master
9999999-devMake error pages Apache web server style.
MIT
The Requires
by Koji Tanaka
0.1
0.1.0.0Make error pages Apache web server style.
MIT
The Requires
by Koji Tanaka
Make error pages Apache web server style.
Make error pages Apache web server style., (*1)
, (*2)
You can install using composer., (*3)
composer require tenkoma/cakephp-apache-error-theme
You can load the plugin using the shell command:, (*4)
bin/cake plugin load CakeApacheErrorTheme
Or you can manually add the loading statement in the config/bootstrap.php file of your application:, (*5)
// config/bootstrap.php Plugin::load('CakeApacheErrorTheme');
set theme in the ErrorController::beforeRender()
., (*6)
// src/Controller/ErrorController.php public function beforeRender(Event $event) { parent::beforeRender($event); $this->viewBuilder()->theme('CakeApacheErrorTheme'); }
and debug = false
in the config/app.php
, (*7)
// config/app.php 'debug' => false,
// config/bootstrap.php Configure::write('CakeApacheErrorTheme', [ 'signature' => 'cake', 'email' => 'webmaster@example.com', ]);
signature
apache
(default)cake
show CakePHP and version as signature.email
(default=webmaster@localhost
) E-mail address to be displayed at 5xx error, (*8)
, (*9)
Make error pages Apache web server style.
MIT
Make error pages Apache web server style.
MIT