I am using cfinclude and having a hard time figuring out a relative path solution it says template this is my code
application.cfc file
<cfcomponent output="false">
<cfset This.application.basePath=  GetDirectoryFromPath(CGI.SCRIPT_NAME) />
Then on one of my webpages lets say index.cfm/users/userinfo.cfm i use
<cfinclude template="#application.basePath#header.cfm">
and i would get an error saying "Element BASEPATH is undefined in APPLICATION." I know that I can use "../" to get the template but then when i go to another webpage that is not listed on that folder i get an error also. How can i use relative path in my cfc to apply to all of the cfincludes ?