hinashiki/fuelphp-maintenance 问题修复 & 功能扩展

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

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

hinashiki/fuelphp-maintenance

最新稳定版本:0.2.0

Composer 安装命令:

composer require hinashiki/fuelphp-maintenance

包简介

FuelPHP 1.x Maintenance Package

README 文档

README

add maintenance mode to FuelPHP.
this is FuelPHP package. if you want to use, please use as package.
How to install : http://fuelphp.com/docs/general/packages.html#/installing

Basic usage

throw as below.

throw new \HttpServerMaintenanceException("your maintenance message.");

Set maintenance mode

create fuel/app/config/maintenance.php
please set like this.

return array(
  "maintenance_mode" => true
);

and insert into Conrtoller::before() as below.

MaintenanceMode::check();

It's displayed maintenance page forcedly.
if you turn off it, please set maintenance_mode => false.

Change maintenance view

create fuel/app/views/503.php and customize it.

Change maintenance view file

if you want to change maintenace view file from default(503.php),
please create fuel/app/config/maintenance.php and set like this.

return array(
  // defalut = "503"
  "view" => "your_maintenance_view"
);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-17