To get it to work for sure, change your returntype to any. But its not the best option.
On 9/16/05, Joe Ferraro <[EMAIL PROTECTED]> wrote: > I tried it myself and had no problems. Spelling? That's my most frequent > nemesis. > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of [EMAIL PROTECTED] > Sent: Friday, September 16, 2005 12:36 PM > To: [email protected] > Subject: [CFCDev] Paths > > Before I start banging my head, Im sure one of you guys can answer this. I > have a simple component, AuthenticationGateway.cfc, which has one method > > <cffunction name = "init" returntype="AuthenticationGateway"> > <cfreturn this> > </cffunction> > > I have a test file, test.cfm, which calls > > <cfset test = createObject("component","AuthenticationGateway").init()> > > test.cfm and authenicationGateway.cfc are in the same directory. I'm > getting the error: > "value returned by function init() is not of type AuthenticationGateway" > > I've tried every combinantion of dot notated path to the file that I can > think of in the return type. Any suggestions? > > > Jason Cronk > Verizon > > > > > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email to > [email protected] with the words 'unsubscribe cfcdev' as the subject of the > email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting > (www.cfxhosting.com). > > CFCDev is supported by New Atlanta, makers of BlueDragon > http://www.newatlanta.com/products/bluedragon/index.cfm > > An archive of the CFCDev list is available at > www.mail-archive.com/[email protected] > > > > > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email to > [email protected] with the words 'unsubscribe cfcdev' as the subject of the > email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting > (www.cfxhosting.com). > > CFCDev is supported by New Atlanta, makers of BlueDragon > http://www.newatlanta.com/products/bluedragon/index.cfm > > An archive of the CFCDev list is available at > www.mail-archive.com/[email protected] > > > -- Ryan Guill BlueEyesDevelopment [EMAIL PROTECTED] www.ryanguill.com (270) 217.2399 got google talk? Chat me at [EMAIL PROTECTED] The Coldfusion Open Application Library - COAL - http://coal.ryanguill.com www.ryanguill.com/ The Roman Empire: www.ryanguill.com/blog/ ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
