flextype-components/notification 问题修复 & 功能扩展

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

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

flextype-components/notification

Composer 安装命令:

composer require flextype-components/notification

包简介

Notification component for storing and retrieving flash data.

README 文档

README

Version MIT License Quality Score

Notification component for storing and retrieving flash data.

Installation

composer require flextype-components/notification

Usage

use Flextype\Component\Notification\Notification;

Initializes the Notification service.
This will read notification/flash data from the $_SESSION variable and load it into the $this->previous array.

Notification::init();

Returns a specific variable from the Notifications array.

echo Notification::get('success');
echo Notification::get('errors');

Adds specific variable to the Notifications array.

Notification::set('success', 'Data has been saved with success!');
Notification::set('errors', 'Data not saved!');

Adds specific variable to the Notifications array for current page.

Notification::setNow('success', 'Success!');

Clears the Notifications array.
Data that previous pages stored will not be deleted, just the data that this page stored itself.

Notification::clean();

License

See LICENSE

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固