February 07, 2006

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.

Like this? Follow me ↯

You might also like:

6 people found this page useful, what do you think?


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.
Eric a problem could arise if you want to use some third party code that assumed enablecfoutputonly was not on.
Ya should try trim filter.

Foundeo Inc.