juuce / flashmessenger-laminas
Laminas MVC flashmessenger
v1.0
2016-08-20 09:53 UTC
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2025-06-19 12:22:11 UTC
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");