I have a CFC that extends another CFC, and I want to overwrite a function in
the base CFC using a cfinclude. Take the following example:
subset.cfc:
<cfcomponent extends="cfcs.base">
<cfinclude template="functions.cfm" />
</cfcomponent>
base.cfc:
<cfcomponent>
<cffunction name="doStuff">
<cfset returnVal = 1 />
<cfreturn returnVal />
</cffunction>
</cfcomponent>
functions.cfm:
<cffunction name="doStuff">
<cfset returnVal = 2 />
<cfreturn returnVal />
</cffunction>
Now if i paste the contents of function.cfm to where the cfinclude is the
functions.cfm version of doStuff() overwrites the base version of doStuff()
(good), but when i extract it into a separate file and use the cfinclude, it
does not overwrite doStuff() (bad).
Anyone know of a good workaround for this?
Thanks!
Jake Pilgrim
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 &
Flex 2
Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276140
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4