juuce / flashmessenger-laminas
Laminas MVC flashmessenger
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 7
pkg:composer/juuce/flashmessenger-laminas
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2025-12-19 13:33:19 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");
