title: ColdFusion Application.cfm cfinclude not working
body: <p>I have a function called "conv" which is needed in several programs within my application.  So rather than include it in each program, I put it in the Application.cfm, which looked like this:</p>
  
  <pre><code>&lt;cfapplication name = "Moxware" sessionmanagement = "Yes"&gt;  
  &lt;cfset lang = "LU"&gt;
  &lt;cfset x127 = Chr(127)&gt;   
  &lt;cfset mmox = 'Moxware'&gt;
  &lt;cfinclude template="conv.cfc"&gt;
  </code></pre>
  
  <p>When I ran one of the programs using the function "conv" (which is in conv.cfc) I got an error that the function <code>conv</code> could not be found.</p>
  
  <p>After I hunted around the internet for ideas I tried this:</p>
  
  <pre><code>&lt;cfapplication name = "Moxware" sessionmanagement = "Yes"&gt;  
  &lt;cfset lang = "LU"&gt;
  &lt;cfset x127 = Chr(127)&gt;   
  &lt;cfset mmox = 'Moxware'&gt;
  &lt;cffunction name="onRequestStart" output="true" returntype="void"&gt;
     &lt;cfinclude template="conv.cfc"&gt;
  &lt;/cffunction&gt;
  </code></pre>
  
  <p>That gave me the same error message as before.</p>
  
  <p>Can someone explain to me how to do this?</p>
  
  <p>Note that the function <code>conv</code> was tested and works just fine.</p>