Skip to main content
sueb55151319
Participant
September 22, 2016
Question

sue

  • September 22, 2016
  • 1 reply
  • 173 views

What is CFC and how do I get it?

    This topic has been closed for replies.

    1 reply

    WolfShade
    Legend
    September 22, 2016

    CFC is a Cold Fusion Component, also known as a User Defined Function, and you can either create your own, or find them available for download (some free, some require a fee.)

    Typically, you would create a folder within the root of your site/application called "components" and set a mapping to that location within your application.cfc.  Then, whenever you need to call that CFC, there are several ways to access functions within the CFC.  My favourite is to:

    <cfset queryObj = new components.myCFC().myFunction() />

    <cfoutput query = "queryObj">

    ... your output code here...

    </cfoutput>

    That is CFC in a nutshell.

    HTH,

    ^_^