ider/flashmessages 问题修复 & 功能扩展

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

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

ider/flashmessages

Composer 安装命令:

composer require ider/flashmessages

包简介

FlashMessages is a class to handle success, debug, warning and error messages. It's made for the framework Anax-MVC.

README 文档

README

Build Status Scrutinizer Code Quality Code Coverage

FlashMessages

FlashMessages is a class to handle success, debug, warning and error messages. It's made for the framework Anax-MVC.

How to use

###1. Download

The easiest way to install this is using composer. Add this your composer.json:

"require": {
    "ider/flashmessages": "dev-master"
},

###2. Include FlashMessages in your project Session must be started before using FlashMessages. In order to include the class in you Anax-MVC, you can add this in your front controller:

$di->setShared('FlashMessages', function() use ($di) { 
    $FlashMessages = new \ider\FlashMessages\FlashMessages($di); 
    return $FlashMessages; 
});

###3. Generate and display messages Four different types of messages can be generated. Here is and example of how you can display a message in Anax-MVC:

    $app->FlashMessages->addSuccess("Yes, Everything went very smoothly!");
    $app->FlashMessages->addInfo("This is very important information.");
    $app->FlashMessages->addWarning("This is a warning.");
    $app->FlashMessages->addError("Too bad! Something went wrong.");

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-07