2 Replies Latest reply on May 3, 2007 2:53 PM by romeogq

    cfmodule and trailing slash

    romeogq Level 1
      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.
        • 1. Re: cfmodule and trailing slash
          Level 7
          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.

          • 2. Re: cfmodule and trailing slash
            romeogq Level 1
            thanks