OOPhoto - Simple Service Objects In Place

<!--- Param URL variables. --->
<cfparam name="REQUEST.Attributes.id" type="numeric" default="0" />
 
<!--- Get the selected gallery. --->
<cfset REQUEST.Gallery = APPLICATION.Factory.Get( "PhotoGalleryService" ).GetGalleryByID( REQUEST.Attributes.id ) />
 
<!--- Get the photos for this gallery. --->
<cfset REQUEST.Photo = APPLICATION.Factory.Get( "PhotoService" ).GetPhotosForGallery( REQUEST.Gallery.id ) />

For Cut-and-Paste