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

cfobject component

Participant ,
Dec 18, 2006 Dec 18, 2006

Copy link to clipboard

Copied

My components are located in a level 1 subdirectory named cfcs.
In my root directory I have a test script (test.cfm), and in a level 1 subdirectory named other I have my actual script (actual.cfm).

This <cfobject component="cfcs.logfunctions" name="logs"> works for the root test file, or at least I don't generate an error, but not for my actual file located in the subdirectory. What the problem?

Error on Actual Subdirectory File:
Could not find the ColdFusion Component cfcs.logfunctions. Please check that the given name is correct and that the component exists.
TOPICS
Advanced techniques

Views

283

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

correct answers 1 Correct answer

LEGEND , Dec 18, 2006 Dec 18, 2006
<cfobject component="cfcs.logfunctions" name="logs">

CF looks for components in the current directory and subdirectories of
it. To use components outside of this path, one needs to create mapping
in the cfadministrator. Create a mapping named "CFCS" pointing to your
CFCS directory and all will work fine.

Votes

Translate

Translate
LEGEND ,
Dec 18, 2006 Dec 18, 2006

Copy link to clipboard

Copied

LATEST
<cfobject component="cfcs.logfunctions" name="logs">

CF looks for components in the current directory and subdirectories of
it. To use components outside of this path, one needs to create mapping
in the cfadministrator. Create a mapping named "CFCS" pointing to your
CFCS directory and all will work fine.

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