0 Replies Latest reply on Jun 7, 2006 2:06 PM by inactiveforumnotifier

    Application.cfc, OnRequestStart, CFInclude

    Level 1
      O.K. I'll admit I am feeling a little stupid here but I just don't understand this. All I wanted to do was include my script library file using the OnRequestStart function withn application.cfm. There isn't anything special inthe _ScriptLib.cfm template. My Application.cfc file looks like this... (Only the pertinent portions are included)

      <CFFUNCTION NAME="onRequestStart" OUTPUT="Yes" RETURNTYPE="any">
      <CFINCLUDE TEMPLATE="_ScriptLib.cfm">
      ... (other CFSETS and junk like that)
      </CFFUNCTION >

      <CFFUNCTION NAME="onRequest">
      <CFARGUEMENT NAME="targetTemplate" type="String" required="true" />
      <CFINCLUDE TEMPLATE="#arguments.targetTemplate#">
      </CFFUNCTION>

      My question is why do I need to add the CFArguement tag in the OnRequest function to include my scripts??? Why doesn't the CFInclude tag in OnReq