silverstripe-module silverstripe-flash-messages
A simple module for sending flash messages in your SilverStripe app.
cheddam/silverstripe-flash-messages
A simple module for sending flash messages in your SilverStripe app.
- Friday, June 8, 2018
- by Cheddam
- Repository
- 1 Watchers
- 3 Stars
- 105 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 3 Forks
- 2 Open issues
- 3 Versions
- 0 % Grown
silverstripe-flash-messages
for flashing dem messages, (*1)
For SilverStripe 3 compatibility, use v1.0.0., (*2)
Usage
composer require cheddam/silverstripe-flash-messages
, (*3)
In controller methods:, (*4)
$this->flashMessage('She drove me here', 'warning');
, (*5)
In templates:, (*6)
<% if $FlashMessagesPresent %>
<% loop $FlashMessages %>
<div class="message message--$Type">$Message</div>
<% end_loop %>
<% end_if %>
Caveats
- $FlashMessages can only be called once as it clears the messages from the session before returning them.
1.x-dev
1.9999999.9999999.9999999-dev
A simple module for sending flash messages in your SilverStripe app.
Sources
Download
MIT
The Requires
by
Garion Herman
dev-master
9999999-dev
A simple module for sending flash messages in your SilverStripe app.
Sources
Download
MIT
The Requires
by
Garion Herman
v1.0.0
1.0.0.0
A simple module for sending flash messages in your SilverStripe app.
Sources
Download
MIT
The Requires
by
Garion Herman