lova/flashingmessage
Composer 安装命令:
composer require lova/flashingmessage
包简介
Flash class using sessions
README 文档
README
How to use
1.Download
The easiest way is to install the module using composer. Add to your composer.json:
"require": {
"lova/flashingmessage": "dev-master"
},
And then run composer install.
You can also download the zip file from here.
2.Include it in your project.
To include flashingmessage in your project add the class in your frontcontroller:
$di->setShared('flash', function() {
$flash = new \lova\flashingmessage\flashingmessage();
return $flash;
});
Here's an example of how to use add a message:
$app->flash->message('success', 'This message tells you your action was succesful');
License
This software is free software and carries a MIT license.
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-03