Skip to content

Instantly share code, notes, and snippets.



Created Nov 17, 2012
What would you like to do?
HTML::macro('flash', function()
$message_status = Session::get('message_status');
$message = Session::get('message');
return ($message && $message_status) ? '<div class="flash flash-' . $message_status . '">' . $message . '</div>' : '';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.