Okay folks, I don't understand this cfinvoke component carry on...

I've got one of the MM demo apps which calls:
<cfinvoke 
 component="extremeCF.employeemgr"
 method="listEmployee"
 returnvariable="listEmployeeRet">
</cfinvoke>

the cfc sits in the same dir as the cfm template - just as it came, and the whole app 
sits in wwwroot/extremeCF/ just like it's supposed to...
but when I run it, I get "Could not find the template extremeCF.employeemgr". Does the 
reference to the component require an absolute path from the webroot (in which case, 
extremeCF.employeemgr is correct) or does it require a relative path from the calling 
template (in which case, I put employeemgr into a sub folder called extremeCF). In 
both cases, the script fails, but if I change the cfinvoke to:

<cfinvoke 
 component="employeemgr"
 method="listEmployee"
 returnvariable="listEmployeeRet">
</cfinvoke>

then it all works! Why is this? Surely this implies that it's a relative path that's 
required, but why does it not work when employeemgr.cfc is in a sub folder called 
extremeCF from the calling cfm template?

Confused? I am!
Douglas

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


Reply via email to