> This is a simple one I guess. Are the following two snippets of code
> equivalent:
>
> 1.
> <cfmodule template="myCustomTag" attribute1=1 attribute2=2>


>From CFStudio (paraphrased):

The template attribute defines a path to the custom tag (including all path
information). The name attribute defines the name of the custom tag in the
form "Name.Name.Name... " that uniquely identifies a subdirectory containing
the custom tag page under the root directory for CF custom tags.

The difference is that in hosted environments where you dont have access to
the custom tags directory you can template to access directories you have
access to.

> 2.
> <cf_myCustomTag attribute1=1 attribute2=2>
>
> Is there any benefit to calling a tag one way or the other or am I totally
> off base about these being the same?

I believe that CFModule is faster because the tag does not have to resolve
the location information (local directory first then directories under
customtags until a match is found). Using CFModule also eliminates the
possibility of calling someone else's tag by accident.

HTH,
Duane Boudreau
Director of Web Technologies
Ektron, Inc.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to