Copy link to clipboard
Copied
Hi,
my CF application has
<cffunction name="onRequestStart" returnType="boolean" output="yes">
<cfcontent type="text/html; ISO646-IT"> <cfinclude template="SiteHeader.cfm"> <cfreturn true> </cffunction>
<cffunction name="onRequestEnd" returnType="void" output="yes"> <cfinclude template="SiteFooter.cfm"> </cffunction>
on Application.cfc file.
It is ok but I have to create feeds now and cffeed does not work cause of cfinclude.
Is there a way to exclude from certain pages the cfinclude ?
any help is much appreciated
You can either place the feeds in a separate directory, and use a different Application.cfc in that directory, or you can add logic to onRequestStart and onRequestEnd to ignore requests that match the feed URL.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Copy link to clipboard
Copied
You can either place the feeds in a separate directory, and use a different Application.cfc in that directory, or you can add logic to onRequestStart and onRequestEnd to ignore requests that match the feed URL.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Copy link to clipboard
Copied
great
thank you