Download the PHP package mouf/html.widgets.messageservice without Composer
On this page you can find all versions of the php package mouf/html.widgets.messageservice. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mouf/html.widgets.messageservice
More information about mouf/html.widgets.messageservice
Files in mouf/html.widgets.messageservice
Package html.widgets.messageservice
Short Description Use this package to display info/warning/error messages to the user on a web page. Using the SessionMessageService class, you register messages to be displayed. Using the MessageWidget class, you display the error messages in your templates.
License MIT
Homepage https://github.com/thecodingmachine/html.widgets.messageservice
Informations about the package html.widgets.messageservice
User Message Service
This service allows to implement user oriented messaging. It relies on a simple function that will add a message with a given level, and an HTML block that will render user's messages when the page is loaded.
Using the Service
When the package is installed, a block is added to the template's content. When rendered, this block will dump the messages that were stored into the session.
Add a message :
The UserMessageInterface
defines 4 types of message :
- SUCCESS
- INFO
- WARNING
- ERROR
By default, the message will be displayed in the header block. But you are free to insert this block anywhere.
More Information can be found here :
- Using the message service
- Advanced usage
All versions of html.widgets.messageservice with dependencies
mouf/html.utils.weblibrarymanager Version ^4
mouf/utils.session.session-manager Version ^4
thecodingmachine/funky Version ^1
mouf/html.renderer Version ^2
mouf/html.htmlelement Version ~2.0
mouf/utils.value.value-interface Version ~1.0
mouf/utils.action.action-interface Version ~1.0