fromholdio/silverstripe-errored 问题修复 & 功能扩展

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

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

fromholdio/silverstripe-errored

最新稳定版本:2.0.1

Composer 安装命令:

composer require --dev fromholdio/silverstripe-errored

包简介

Alternate handling of displaying http errors

README 文档

README

Flexible error page generation for Silverstripe 6.x

(For Silverstripe 4 & 5+ see 1.x.)

  • Set specific theme stack for error pages, for example use the silverstripe/login-forms security theme for error pages rather than the site global theme
  • Create templates for content of error pages, on a per error code basis, or per 4xx/5xx/etc basis
  • Writes all pages as static files to public webroot during dev/build
  • Displays actual error message from code thrown when environment is in dev mode

Configured multisites

This module does not require fromholdio/silverstripe-configured-multisites, but projects using that module can subclass Errored to write static error pages per site.

See docs/examples/ConfiguredMultisitesErrored.php.example for a starting point. Copy it into your project and configure the injector:

SilverStripe\Core\Injector\Injector:
  Fromholdio\Errored\Errored:
    class: Fromholdio\Errored\ConfiguredMultisitesErrored

Fromholdio\Errored\ConfiguredMultisitesErrored:
  site_themes:
    default:
      - '$public'
      - '$default'

TODO:

  • cms editable content per error code
  • full docs

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2024-01-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固