Parameters
- type (optional) default: errors – the type of messages to display
Description
Prints out the messages stored in the given message type. The default styles are defined in the /public/stylesheets/fabriq.base.css stylesheet and can easily be extending in your own stylesheet. The types of messages that the Messaging class manages are errors, messages, successes, and warnings. The function returns true when it has messages to display and false when there are no messages to display as well as no output.
Example(s)
// example displaying errors Messaging::display_messages(); // example displaying warnings Messaging::display_messages('warnings');
