Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a CFC Method

Status
Not open for further replies.

Glowball

Programmer
Oct 6, 2001
373
US
I've been using CFCs (components) but I guess I've never tried to call them from another other than the top directory in my site's file structure. Now I'm trying to create an instance of a CFC from a subdirectory and I'm not sure how to do it. Here is an example of my file structure.

/index.cfm
/components/example.cfc
/subdir/myfile.cfm

From index.cfm I just use this:

<cfobject name="example" component="components.example">

But how do I do it from myfile.cfm? I've tried a few things but nothing's working. Thanks!
 
Nevermind, I found a typo. On a side note, can you delete or edit posts here?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top