pf » Use CFSILENT
February 07, 2006
Use CFSILENT
Here's my tip for the day. If you have a choice in using either the cfsilent tag, or cfsetting enablecfoutputonly="true" use cfsilent.
Here's why
- Easier to type
- Easier to read
- The
enablecfoutputonlygets very messy when used acrosscfincludes.
There are probably some cases where using enablecfoutputonly makes sense, but in most cases I think you will find that cfsilent works well, and yields much cleaner code.
Related Entries
- 6 Tags for ColdFusion beginners - April 5, 2005
- Regular Expressions with ColdFusion - a Howto Guide - December 19, 2003
- Hands on ColdFusion Security Training - February 4, 2010
- Implicit Structure Notation ColdFusion - January 13, 2009
- Mastering CFQUERYPARAM - July 24, 2008
Trackback Address: 538/A0AE3ADEBD5451E4C826C0180EED0D74
Comments
On 02/07/2006 at 12:47:36 PM EST Eric wrote:
1
I've never had trouble using enableCFoutputOnly. I put it in one cfSetting tag in Application.cfm and enclose everything that has to render in cfOutput tags.
On 02/07/2006 at 12:55:13 PM EST Pete Freitag wrote:
2
Eric a problem could arise if you want to use some third party code that assumed enablecfoutputonly was not on.
On 02/07/2006 at 1:39:46 PM EST Christopher Wigginton wrote:
3
Ya should try trim filter.
http://weblogs.macromedia.com/cantrell/archives/2005/01/eliminate_coldf.cfm
- J2EE Session Cookies on ColdFusion / JRun
- Hands on ColdFusion Security Training
- ColdFusion 9 Solr Vulnerability - Are you at Risk?
- FCKEditor Year 2010 Bug for Firefox 3.6
- jQuery UI Sortable Tutorial
- CFLogin Security Considerations
- Use varchar(max) instead of text in SQL Server
- ColdFusion SOAP Web Services and onRequestStart
Subscribe to my RSS Feed:
RSS
RSS

add to del.icio.us
Pete Freitag is a software engineer, and web developer located in











