emwi / flashingmessage
Class to handle messages like debug, error, sucess or warning
Requires
- php: >=5.4
This package is not auto-updated.
Last update: 2025-06-17 12:27:20 UTC
README
This is a message module for Anax-MVC. Can be used outside of anax too. Handles debug, error, success and warning messages/status. For Anax MVC, see https://github.com/mosbth/Anax-MVC.
License
This software is free software and carries a MIT license.
How to use
First you need a area on your page where Flashingmessage can show the div elements. In anax mvc use this:
File: /theme/anax-base/index.tpl.php
views->hasContent('status')) : ?> views->render('status')?>Then you need to add Flashingmessage to your CDIFacrotyDefault:
$this->setShared('StatusMessage', function() { $module = new \TBM\StatusMessage\CStatusMessage($this); //$module->setDI($this); return $module; });
Then for displaying Flashingmessage on your page copy this to your code.
$status = $app->StatusMessage; $app->views->addString($status->messagesHtml(), 'status');
Then you can choose between four different messages:
addDebugMessage($message) addErrorMessage($message) addSuccessMessage($message) addWarningMessage($message)
.
..: Created by Emma Wiklund, wiklund_e@hotmail.com