One obvious thing for the init() method is to pass in the DSN and store it as an instance variable -- that would prevent you from having to pass it on the other methods (though, you could keep it as an optional argument, perhaps).
A random comment -- I bristled a bit at your use of the Request scope inside the CFC. Admittedly, it's a reflexive reaction to any reference of external variables. But, why not use private instance data there? Another minor thing -- I also notice in the generated HTML INPUT tags there are no spaces between tag attributes, but you do have spaces for attributes in the rest of the generated code. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Joseph Flanigan > Sent: Wednesday, March 10, 2004 7:20 AM > To: [EMAIL PROTECTED] > Subject: RE: [CFCDev] CFC Code generator - Question > > > The Table Wrapper CRUD Wizard generates a CFC but with no init() function. > > Should I add an init() function? > If so, in the case of the table wrapper, what should be in the init()? > > Joseph ---------------------------------------------------------- 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]
