Maslosoft Framework Logo Maslosoft Framework Documentation
Flexible Application Foundation

Notification Messages

Notification messages are non-disturbing, self vanishing message baloons, which will display some helpful message just briefly.

These are suitable for most situations, where user need to be just acknowledged that something happened. For some important messages use flash messages, which stay on screen until clicked.

Messages can be triggered anywhere, whether it is normal GET or AJAX request. Similarly to flash message, first instantiate NotifyMessage, then call any message type.

This example message should pop for a moment just after displaying this page:

(new NotifyMessage())->setSuccess('My success message');

Notifications can also be triggered by JavaScript:

Show message
<a href="#" onclick="app.message('My message', 'info');return false;">Show message</a>