• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

sue

New Here ,
Sep 22, 2016 Sep 22, 2016

Copy link to clipboard

Copied

What is CFC and how do I get it?

Views

134

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 22, 2016 Sep 22, 2016

Copy link to clipboard

Copied

LATEST

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,

^_^

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation