I have this code in a CFC

<cffunction name="Init" access="public" returntype="abdManager"
output="true">
        <cfset variables.Gallery = CreateObject('component','gallery') />
        <cfset variables.Enquiry =
CreateObject('component','enquiry').Init(this) />
        <cfdump var="#this#">
        <cfreturn this />
</cffunction>

Now here is the catch, the dump displays the correct information, however I
have a dump in the Enquiry which is also getting the info from Gallery and
Enquriy, here is the code in that CFC.

<cffunction name="Init" access="public" output="true" returntype="void">
        <cfargument name="abdManager" type="abdManager" required="yes">
        <cfset variables.abdManager = arguments.abdManager />
        <cfdump var="#variables#" />
</cffunction>

Why does the Init in the first CFC, pass everything in the calling Manager
as well as the info for the child. As I said the Dump in the Manager
displays correct info, the dump in the child Enquiry dumps eveything in each
child.... Is this a bug or am I doing something wrong?

 
Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485  -  Fax: 03 9699 7976


----------------------------------------------------------
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]

Reply via email to