I don't tested yet but the problem was when the .cfc is in a another folder than the invoke script
try this :
root/com/mycfc.cfc
Code:
<cfcomponent output="false">
<cffunction name="include" output="true" returntype="boolean">
<cfinclude template="demo.cfm">
<cfreturn true>
</cffunction>
</cfcomponent>
root/com/demo.cfm
Code:
<html>
This is demo page..
root/test.cfm
Code:
<cfinvoke component="com.mycfc" method="include" returnVariable="status"/>
<hr/> <cfdump var="#status#"/>
Normaly this code willl crash because he try to get demo.cfm from the root folder and not from the current folder of mycfc.cfc (root/com)
Say me if you need more. I'll redo the test when I can.
Yours,
Max