Pete Freitag Pete Freitag


Published on February 07, 2006
By Pete Freitag

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 enablecfoutputonly gets very messy when used across cfincludes.

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.

coldfusion cfml tips cfsilent cfsetting

Use CFSILENT was first published on February 07, 2006.

If you like reading about coldfusion, cfml, tips, cfsilent, or cfsetting then you might also like:

FuseGuard Web App Firewall for ColdFusion

The FuseGuard Web Application Firewall for ColdFusion & CFML is a high performance, customizable engine that blocks various attacks against your ColdFusion applications.

The weekly newsletter for the CFML Community


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.
by Eric on 02/07/2006 at 12:47:36 PM UTC
Eric a problem could arise if you want to use some third party code that assumed enablecfoutputonly was not on.
by Pete Freitag on 02/07/2006 at 12:55:13 PM UTC
Ya should try trim filter.
by Christopher Wigginton on 02/07/2006 at 1:39:46 PM UTC