Jamie
you need to use DOT notation to get to the path
createObject("component","dir1.dir1.cfcFile");
this only works as a relative path from your current template or from the
base webroot of your application.
if you want to use a CFServer mapping so you can store your CFC outside the
webroot, you can also do that
createObject("component","mappingPath.dir1.dir1.cfcFile");
Steve
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jamie
Lawrence Jenner
Sent: Monday, April 19, 2004 10:23 PM
To: CFAussie Mailing List
Subject: [cfaussie] Component placement
hello folks, this is my first posting here so be gentle on me!
i am having trouble with my components. i can only invoke a component from
a template which is in the same folder as the component itself. Surely
there must be someway of storing all of my components in one folder and
invoke them from anywhere within my app. Is it a server setting/mapping
issue?
cheers in advance
Jamie
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004