17 Replies Latest reply on Feb 14, 2012 9:13 AM by BKBK

    Application include header question

    TheScarecrow Level 1

      Can you put onRequestStart something like this so it loads the correct header.cfm?  (yes this sample is setting a variable I know for a header I would have to use include)

      At the moment on the pages show 5 and I am not sure why.  Does it not know that page path that is being requested?


      <cfset currentPath = getCurrentTemplatePath()>

                 <cfif findnocase("end", currentPath) GT 0>

                           <cfset request.xyz = 1>

                  <cfelseif findnocase("start", currentPath) GT 0>

                           <cfset request.xyz = 2>


                           <cfset request.xyz = 5>