PHP code example of tenkoma / cakephp-apache-error-theme
1. Go to this page and download the library: Download tenkoma/cakephp-apache-error-theme library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tenkoma / cakephp-apache-error-theme example snippets
// config/bootstrap.php
Plugin::load('CakeApacheErrorTheme');
// src/Controller/ErrorController.php
public function beforeRender(Event $event)
{
parent::beforeRender($event);
$this->viewBuilder()->theme('CakeApacheErrorTheme');
}
// config/app.php
'debug' => false,
// config/bootstrap.php
Configure::write('CakeApacheErrorTheme', [
'signature' => 'cake',
'email' => '[email protected]',
]);