• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfmodule and trailing slash

Participant ,
May 03, 2007 May 03, 2007

Copy link to clipboard

Copied

Why does a trailing slash "<cfmodule blah blah blah />" cause it to be called twice?? I just waited 2 hours debugging a site just to find out this was the issue.
TOPICS
Advanced techniques

Views

275

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 03, 2007 May 03, 2007

Copy link to clipboard

Copied

romeogq wrote:
> Why does a trailing slash "<cfmodule blah blah blah />" 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.

<cf_MyTag> //MyTag code run here.
</cf_MyTag> //MyTag code run here.

<cf_MyTag /> 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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 03, 2007 May 03, 2007

Copy link to clipboard

Copied

LATEST
thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation