juuce/flashmessenger-laminas
Composer 安装命令:
composer require juuce/flashmessenger-laminas
包简介
Laminas MVC flashmessenger
README 文档
README
Register the module. (to be able to use the ViewHelper)
config/modules.config.php
'modules' => array( '...', 'Laminas\Mvc\Plugin\FlashMessenger', 'Juuce\Laminas\Flashmessenger' ),
Installer
Add this to your layout.phtml file. Should already have inlineScript() so above that
<?php $this->FlashMsg(); ?> <?php echo $this->inlineScript() ?>
Utilisation
Add for each message type
4 types available
<?php $this->flashMessenger()->addSuccessMessage('Sample success message'); $this->flashMessenger()->addErrorMessage('Sample error message'); $this->flashMessenger()->addInfoMessage('Sample Info message'); $this->flashMessenger()->addWarningMessage("Sample warning message");
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-19
