承接 frjf14/cflashmessage 相关项目开发

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

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

frjf14/cflashmessage

Composer 安装命令:

composer require frjf14/cflashmessage

包简介

Class for flash messages.

README 文档

README

Scrutinizer Code Quality Code Coverage Build Status

Flash messages - Anax MVC

cflashmessage handles error, success, notice and warning messages, which can be used to give the user feedback.

License

This software is free software and carries a MIT license.

How to use flash messages

Adding it as shared service in the frontcontroller.

$di->setShared('flashmessage', function() { $flashmessage = new \frjf14\FlashMessage\CFlashMessage(); return $flashmessage; });

From the package Copy the css file: frjf14/cflashmessage/src/css/flashmessage.css to the webroot css folder: webroot/css/ then add the css to the frontcontroller $app->theme->addStylesheet('css/flashmessage.css'); or just link directly to the CSS file within the package $app->theme->addStylesheet('../vendor/frjf14/cflashmessage/src/css/flashmessage.css');

Now you can add flash messages as an example error message: $app->flashmessage->addError('An error message.'); and to display the message use $app->flashmessage->getFlashMessages(); to retrive the message(s) as html.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固