Skip to content

Instantly share code, notes, and snippets.

@Meroje
Created November 17, 2012 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Meroje/4096517 to your computer and use it in GitHub Desktop.
Save Meroje/4096517 to your computer and use it in GitHub Desktop.
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