<!--- CHILD.CFC ---> <cfcomponent hint="child component" extends="parent"> <cffunction name="f1"> <cfreturn "f1 child"> </cffunction>
<cfinclude template="inc.cfm"> </cfcomponent>
This doesn't create a method - the functions defined in inc.cfm are callable within the component but they are not part of the component. That means the function in inc.cfm cannot override methods in the parent class - and therefore you are trying to declare f2 twice (which is illegal).
I'm guessing CF is considering the included method as a UDF rather than an integral component method
You are correct.
It is implemented this way so you can <cfinclude> a function library into a <cfcomponent> tag and access the UDFs in it - without polluting the methods in your CFC. If I recall correctly, you can also <cfinclude> a function library into a <cffunction> tag - which makes the UDFs available just inside that method.
Regards, Sean
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
