Hi everyone,
I am having some problem with the access method of a CFC and I was
wondering if someone could lend some help.
Here is my CFC
<!--- Test.cfc ---->
<cfcomponent>
<cffunction name="init" access="public" returntype="test">
<cfreturn this />
</cffunction>
<cffunction name="mainmethod" output="false" returntype="string"
access="public">
<cfset var ret = "">
<cfinvoke component="#this#" method="packageMethod"
returnvariable="ret" />
<!---
this doesn't work
<cfinvoke component="#this#" method="privateMethod"
returnvariable="ret" /> --->
<cfreturn ret />
</cffunction>
<cffunction name="privateMethod" access="private" returntype="string">
<cfreturn "Private Method" />
</cffunction>
<cffunction name="packageMethod" access="package" returntype="string">
<cfreturn "Package Method" />
</cffunction>
</cfcomponent>
As you can see when I try calling a private method by using "this", it
won't work however it works fine for a package method. Any thought?
Thanks
Qasim
----------------------------------------------------------
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]