tenkoma/cakephp-apache-error-theme 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tenkoma/cakephp-apache-error-theme

Composer 安装命令:

composer require tenkoma/cakephp-apache-error-theme

包简介

Make error pages Apache web server style.

README 文档

README

Make error pages Apache web server style.

Not Found

Installation

You can install using composer.

composer require tenkoma/cakephp-apache-error-theme

Enable Plugin

You can load the plugin using the shell command:

bin/cake plugin load CakeApacheErrorTheme

Or you can manually add the loading statement in the config/bootstrap.php file of your application:

// config/bootstrap.php
Plugin::load('CakeApacheErrorTheme');

Enable theme

set theme in the ErrorController::beforeRender().

// src/Controller/ErrorController.php
    public function beforeRender(Event $event)
    {
        parent::beforeRender($event);

        $this->viewBuilder()->theme('CakeApacheErrorTheme');
    }

and debug = false in the config/app.php

// config/app.php
    'debug' => false,

Configure

// 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

Example

404 Not Found

Not Found

5xx Internal Error

Internal Error

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固