> So in my getCart() method how would I return the query? > > <CFRETURN getCart> OR <CFRETURN VARIABLES.getCart>
If your logic is, if my cached version doesn't it, make it, then you always simply return the cached version, variables.theCart (I don't use variables with the same name as methods) > Is there a difference? Yes. > > And in my other method called setOrderWeight() could I just > use CFLOOP to loop over the query like this? > > <CFLOOP QUERY="getCart"> > ... > </CFLOOP> No, you would want to use variables.getCart, although getCart would work fine as well. ======================================================================== === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email : [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word '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]
