定制 emwi/flashingmessage 二次开发

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

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

emwi/flashingmessage

Composer 安装命令:

composer require emwi/flashingmessage

包简介

Class to handle messages like debug, error, sucess or warning

README 文档

README

This is a message module for Anax-MVC. Can be used outside of anax too. Handles debug, error, success and warning messages/status. For Anax MVC, see https://github.com/mosbth/Anax-MVC.

License

This software is free software and carries a MIT license.

How to use

First you need a area on your page where Flashingmessage can show the div elements. In anax mvc use this:

File: /theme/anax-base/index.tpl.php

views->hasContent('status')) : ?> views->render('status')?>

Then you need to add Flashingmessage to your CDIFacrotyDefault:

$this->setShared('StatusMessage', function() { $module = new \TBM\StatusMessage\CStatusMessage($this); //$module->setDI($this); return $module; });

Then for displaying Flashingmessage on your page copy this to your code.

$status = $app->StatusMessage; $app->views->addString($status->messagesHtml(), 'status');

Then you can choose between four different messages:

addDebugMessage($message) addErrorMessage($message) addSuccessMessage($message) addWarningMessage($message)

 .  
..:  Created by Emma Wiklund, wiklund_e@hotmail.com

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固