Cfinterface question
Hello,
I've created a cfinterface file and a cfcomponent file in the same folder. I've put the "implements=<interface file name>" in the cfcomponent tag. It doesn't seem to matter what I put in the implements path or in the cfinterface file. It just seems to ignore it. From the documentation, it states the definition in the cfcomponent must match the cfinterface that it implements, so I was thinking it would error in some way if it didn't match. Can someone tell me what I'm doing wrong? Thanks for the help.
Itest.cfc:
<cfinterface>
<cffunction name="test" access="remote" returntype="query" output="no">
<cfargument name="param" type="string">
</cffunction>
</cfinterface>
Ctest.cfc:
<cfcomponent implements="Itest.cfc">
<cffunction name="test" access="remote" returntype="query" output="no">
<cfargument name="param" type="string">
<cfquery name="testquery" datasource="#dsn#">
select id
from test1
where name = 'test1'
</cfquery>
<cfreturn #testquery#>
</cffunction>
</cfcomponent>
