Created
February 13, 2012 22:54
-
-
Save chrisdpeters/1821254 to your computer and use it in GitHub Desktop.
Experimenting with flashMessages() in CFWheels
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfoutput> | |
#flashMessages()# | |
</cfoutput> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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