承接 zf-hipsters/bootstrap-flash-messenger 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

zf-hipsters/bootstrap-flash-messenger

最新稳定版本:1.02

Composer 安装命令:

composer require zf-hipsters/bootstrap-flash-messenger

包简介

Simple implementation of ZF2 flash messengers using bootstrap. Contains easy helpers that will save you a LOT of time.

README 文档

README

A simple module that makes flash messengers as simple as they are in CakePHP. And the best part is it generates beautifully formatted Bootstrap alerts!

Installation

  1. Add the following requirement to your projects composer.json file.

Within the "require" section:

"zf-hipsters/bootstrap-flash-messenger": ">=1.0"
  1. Open up your command line and run
php ./composer.phar update
  1. Add 'FlashMessenger' to your /config/application.config.php modules

Controller Plugin Examples

Simple success (this is the default namespace)

$this->fm('You have been logged in.');
return $this->redirect()->toRoute('dashboard');

Error

$this->fm('Your username and/or password were incorrect.', 'error');
return $this->redirect()->toRoute('authorize/login');

Info

$this->fm('Something cool happened!', 'info');
return $this->redirect()->toRoute('home');

Warning

$this->fm('Careful! Something bad could happen!', 'warning');
return $this->redirect()->toRoute('dashboard');

View Helper Example

Default usage

<?=$this->fm()?>

Custom Namespace(s)

<?=$this->fm('exciting_namespace')?>
<?=$this->fm(array('mynamespace1', 'mynamespace2'))?>

Customising templates

Customising templates and changing the titles is super easy! Ensure that FlashMessenger is somewhere at the top of your list in application.config.php Now, copy the vendor/zf-hipsters/bootstrap-flash-messenger/view/flash-messenger folder to your eg module/application/view folder.

That's it, customise to your hearts content and they will overload the default files!

统计信息

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

GitHub 信息

  • Stars: 14
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2013-11-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固