Skip to content

Instantly share code, notes, and snippets.

@bardware
Created December 11, 2017 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bardware/5a34c49b74c7bbba4d8adae80fbc84fa to your computer and use it in GitHub Desktop.
Save bardware/5a34c49b74c7bbba4d8adae80fbc84fa to your computer and use it in GitHub Desktop.
Component [site1.Application] has no accessible Member with name [WEBROOT]
<cfcomponent>
<cfset this.name = Hash( GetCurrentTemplatePath() )>
<cfset this.webroot = GetDirectoryFromPath(GetCurrentTemplatePath())>
</cfcomponent>
<cfcomponent extends ="RootProxy">
<cfset this.webroot = this.webroot & "/site1">
</cfcomponent>
<cfinclude template = "../Application.cfc">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment