定制 xililo/flash-popup-widget 二次开发

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

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

xililo/flash-popup-widget

最新稳定版本:v0.3.1

Composer 安装命令:

composer require xililo/flash-popup-widget

包简介

A widget that displays session flashes and triggers popups

README 文档

README

FlashPopupWidget is a Yii2 widget that displays session flashes as popups based on the flash types.

Installation

Install the widget using Composer:

composer require xililo/flash-popup-widget

Usage

Let's say you have the folowing in the controller:

  Yii::$app->session->addFlash('danger', 'Log in to proceed with the operation.');

Import the FlashPopupWidget class at the top of your main layout view or any view file (e.g. in your views/layouts/main.php):

  use xililo\Popups\FlashPopupWidget;

Place the widget call in your view file or controller where you want to display the flashes and trigger the popups:

  echo FlashPopupWidget::widget();

This will render the FlashPopupWidget popups based on the flash types.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固