Thursday, April 1, 2010

cfmodule and trailing slash

Why does a trailing slash ''%26lt;cfmodule blah blah blah /%26gt;''
cause it to be called twice?? I just waited 2 hours debugging a
site just to find out this was the issue.cfmodule and trailing slash
romeogq wrote:

%26gt; Why does a trailing slash ''%26lt;cfmodule blah blah blah
/%26gt;'' cause it to be called twice?? I just waited 2 hours
debugging a site just to find out this was the issue.



As the documentation explains, custom tags are run at the
beginning and

the end of a tag call.



%26lt;cf_MyTag%26gt; //MyTag code run here.

%26lt;/cf_MyTag%26gt; //MyTag code run here.



%26lt;cf_MyTag /%26gt; is just short had for the above, so the
MyTag code will be

run at the beginning and the end.



thistag.excecutionmode will tell you if the tag is running at
the start

of the end.



cfmodule and trailing slash
thanks

No comments:

Post a Comment