定制 atelierdisko/li3_flash_message 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

atelierdisko/li3_flash_message

最新稳定版本:v1.1.2

Composer 安装命令:

composer require atelierdisko/li3_flash_message

包简介

The Flash Message plugin for Lithium provides a straightforward interface for displaying status messages to the user.

README 文档

README

The Flash Message (li3_flash_message) plugin provides a straightforward interface for displaying status messages to the user.

Installation

The preferred installation method is via composer. You can add the library as a dependency via:

composer require <AUTHOR>/<PROJECT NAME>

li₃ plugins must be registered within your application bootstrap phase as they use a different (faster) autoloader.

Libraries::add('li3_flash_message')

The official manual has more information on how to register the plugin with the app or use alternative installation methods (i.e. via GIT).

Usage

Inside the controller messages can be queued up using the write() method.

FlashMessage::write('The post has been saved.');

Inside the view flash messages can be shown using the element.

<?= $this->flashMessage->show() ?>

Goals

  • Use existing session storage
  • Eliminate message content from controllers
  • Easily localize messages
  • Use filters to integrate into existing workflow

Copyright & License

Copyright 2010 Michael Hüneburg. All rights reserved. Copyright 2012 Union of RAD. All rights reserved.

This library is distributed under the terms of the BSD 3-Clause License. The full license text can be found in the LICENSE.txt file.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 17
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-clause
  • 更新时间: 2015-01-07