定制 heimrichhannot/contao-status_messages 二次开发

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

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

heimrichhannot/contao-status_messages

最新稳定版本:2.5.0

Composer 安装命令:

composer require heimrichhannot/contao-status_messages

包简介

A general status message bundle for the frontend.

README 文档

README

A general status message module for the frontend.

Features

  • use same functionality as contao message class in the frontend
  • Encore Bundle support

Usage

Install

  1. Install with composer or contao manager

    composer require heimrichhannot/contao-status_messages

  2. Update database

In a module

Simply add the following to your template:

<?php echo \HeimrichHannot\StatusMessages\StatusMessage::generate($this->id); ?>

To add new Messages use the appropriate function in StatusMessage:

StatusMessage::addError('An error has happened', $this->id);

By using the global frontend module ModuleStatusMessages

Simply add the module to your page. The contained javascript gets all messages thrown in your modules and adds it to the global markup element. It's necessary to use javascript here since else you get problems with order and redirects.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2015-11-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固