Question
pseudo constructor
I am going through a petmarket application can't remember
which one it was I have it printed out but I am using it to finally
understand cfcs. In this short bit on the component before the
methods we have what I know to be the the "pseudo constructor". A
couple of questions please about why the author did these two
things:
Why are we setting the cfproperty values?
Why are we setting defaults for everything in this scope-surely we want to use arguments instead with required false?
I have seen this a lot cfsetting var = createobject() why would you do this to invoke in the case in the code the component for all the methods in the cfc?
Thank you
Why are we setting the cfproperty values?
Why are we setting defaults for everything in this scope-surely we want to use arguments instead with required false?
I have seen this a lot cfsetting var = createobject() why would you do this to invoke in the case in the code the component for all the methods in the cfc?
Thank you
