Accessibility
Adobe
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

cf_object

By SamCoe November 09, 2001
120 Downloads

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 foo.bar.getit foo.bar.getit takes the file obj_getit.cfm from the foo/bar folder. I recomend you use <cfmodule template="object.cfm" id="search.city"> 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="search.sql.city"> 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="search.city" city="#url.city#"> this will pass the url.city through the city param. NEAT!

SUPPORT INFORMATION
Not available

Download

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

Additional extension information

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

Reviews

0-0 of 0 reviews | Show all reviews


Add a review

(+) Please log in to submit a review