Skip to content

Instantly share code, notes, and snippets.

@chrisdpeters
Created February 13, 2012 22:54
Show Gist options
  • Save chrisdpeters/1821254 to your computer and use it in GitHub Desktop.
Save chrisdpeters/1821254 to your computer and use it in GitHub Desktop.
Experimenting with flashMessages() in CFWheels
<cfoutput>
#flashMessages()#
</cfoutput>
<cfoutput>
<!--- Display error message from the Flash --->
<cfif flashKeyExists("error")>
<div class="error-message">
#flash("error")#
</div>
</cfif>
<!--- Display success message from the Flash --->
<cfif flashKeyExists("success")>
<div class="success-message">
#flash("success")#
</div>
</cfif>
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment