flextype-components/notification
Composer 安装命令:
composer require flextype-components/notification
包简介
Notification component for storing and retrieving flash data.
README 文档
README
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
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-30