dev-master
9999999-dev http://github.com/sheadawson/silverstripe-zenmessageA simple extension to allow custom message/notice setting in ss applications
The Requires
by Shea Dawson
silverstripe
A simple extension to allow custom message/notice setting in ss applications
This simple module gives developers an easy way to display feedback messages to the website user., (*1)
To set a message simply call the setMessage($messageType, $message) method on your controller. Passing in the message type as the first parameter and the message as the second, (*2)
$this->setMessage('success', 'You have successfully set a message');
Place the $Message variable into your page template, wherever you would like your message to be displayed. If a message has been set (using the setMessage() method) before the template is rendered, the message will be displayed., (*3)
Some basic default message styles can be applied by including zenmessage/css/zenmessage.css in your website or application, (*4)
A simple extension to allow custom message/notice setting in ss applications
silverstripe