As a general rule, you will always want output="false" on your tag-based
functions. Pretty much the only exception to that is if you are truly
wanting to output from within that function.
<!--- way over-simplified example of when you want output --->
<cffunction name="writeFoo" output="true">
<cfset var foo = "HI MOM!" />
<cfoutput>#foo#</cfoutput>
</cffunction>
The issue is that CF generates whitespace in its processing of tags. So, to
keep that from potentially popping up in your code, form the habit of always
setting output="false" (it defaults to true). Then, on the rare occasion
that you need to output, simply change it for that particular function.
HTH
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340171
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm