Sign in Privacy My Adobe

ColdFusion Utility & Development

Adobe Exchange: The new way to discover and install plug-ins, extensions and content for the Creative Suite. Get it now


By SamCoe November 09, 2001

Rating = 00 votes

Object Tag, This a way of making object oriented CF, with directories. Attributes: ID: this is the object's name. i.e takes the file obj_getit.cfm from the foo/bar folder. I recomend you use <cfmodule template="object.cfm" id=""> this will keep the paths correct. put object.cfm in your root folder and everything is underneth it. if you have the object search.sql.findcities, the structure is: search/sql/obj_findcities.cfm If you call an object from within another object, ie you need to call search.sql.findevents from search.sql.findcities, the tage would be <cfmodule template="../../object.cfm" id=""> This will call object.cfm two levels down and because the relative paths are relative to the path of object.cfm it will find search/sql/obj_city.cfm just find. Since your object is basically just a custom tag, you have to do everything like a custom tag would. I.E. if you need to reference a variable from the calling template, you have to use caller.whatever. This works great because you can also use attributes, I.E. <cfmodule template="object.cfm" id="" city=""> this will pass the through the city param. NEAT!

Not available


License: Freeware
Cost: Free
OS: Not available
File format: ZIP | 0.8 KB

Additional extension information

Author: SamCoe
Author website:
Date published: November 09, 2001
Approval: None
Browsers: Not available
Compatible Products(s): ColdFusion 4
Encrypted: No


0-0 of 0 reviews | Show all reviews

Add a review

(+) Please log in to submit a review