A CFC (ColdFusion Component) is a template written with specific syntax to 
act in an object oriented manner. The CFC is made up of functions (referred 
to as methods) that can be accessed to do work. In addition, the cfc has the 
ability to preserve variables that are created as long as it exists. These 
variables are stored within 2 special scopes within the CFC called "this" 
and "variables". If a CFC is used within a calling CF template, then these 
variables will exist until the template finishes execution. If the CFC is 
cached to memory, then these variables will exist until the CFC is removed 
from memory.
There are many ways to call a CFC, but each way actually calls a specific 
function/method within the CFC for execution. This is one of the Pros of it. 
The ability to organize code into clear and concise segments that can be 
called for a specific operation. The ability to hold memory variables 
'local' to the CFC is another pro.

There are much better explanations of CFCs in the docs and in future posts 
on this thread but the above is a fast start. Personally, I love CFCs and 
suggest using them ASAP.

> Can someone briefly educate me what is cfc, why we are using it, and
> pros and cons?
>
> jl
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226236
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to