Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfcomponent displayname="MyMappingsConfig" output="false" hint="Manages configuration of mappings">
- <!--- =======================================================================================================
- CONSTRUCTOR
- ========================================================================================================--->
- <cffunction name="init"
- access="public"
- returntype="MyMappingsConfig"
- output="false"
- hint="constructor">
- <cfset makeMappings()>
- <cfreturn this>
- </cffunction>
- <!--- =======================================================================================================
- METHODS
- ========================================================================================================--->
- <cffunction name="makeMappings"
- access="public"
- returntype="void"
- output="false"
- hint="sets up CF mappings">
- <cfset var webRoot = GetDirectoryFromPath(GetCurrentTemplatePath())>
- <cfset var appRoot = ListDeleteAt(webRoot, ListLen(webRoot, "\/"),"\/") & "/">
- <cfmapping logical="/config" physical="#appRoot#config">
- <cfmapping logical="/coldspring" physical="#appRoot#lib/coldspring">
- <cfmapping logical="/mxunit" physical="#appRoot#/lib/mxunit">
- </cffunction>
- </cfcomponent>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement