I've been digging into the Pet Market this weekend, and I'm hoping
if anyone can shed some light on the reasoning behind the way they
chose to initialize the cfc's. Specifically the user.cfc which is
instantiated in the application.cfm, has constructor code that looks
like this.

<cfparam name="this.userid" default="#createuuid()#">
<cfparam name="this.familyname" default="">
<cfparam name="this.givenname" default="">
<cfparam name="this.phone1" default="">
<cfparam name="this.email" default="">
etc...

My question is why use cfparam if the constructor code is only going
to be run when the cfc is first instantiated? None of the properties
are going to exist yet anyway... What am I missing here?

-- 
mailto:[EMAIL PROTECTED]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to