In my image gallery app, I want to be able to get the number of images
in a gallery. So I've extended the galleryRecord to include this
function
<cffunction name="getImageCount" access="public" output="false"
returntype="numeric">
<cfreturn this.getImageQuery().recordcount>
</cffunction>
This seems to be the correct way to do it within the framework, but it's
very inefficient, and without writing a <cfquery> in there I can't see
how else to do it.
Sorry for the slew of posts, I'll be off to the pub soon I promise ;)
Chris