CFCPath Not working for me

I recently added my site and now I can't get my CFC stuff to work. In my application.cfm i have code that refers back to the path so that I can reference it by name rather than the whole path everytime. However I can't get it two work. This is the code I have:
<cfset cfcpath = "mydomain.com.cfc">

On local this works excpt I change it to be:
<cfset cfpath ="localfolder.cfc">

My local folder structure is:
LocalFolder
+cfc
+images
.
.
.
files

When I uploaded my site, the structure was the same excpt it now says:
mydomain.com
+cfc
+images
.
.
.
files
 
I've found a the solution to my problem. Instead of trying to map <cfset cfcpath = "mydomain.com.cfc"> it is better to map <cfset cfcpath = "cfc">. There is no need to start the mapping from the domain name as CF will look withing the domain first for the specified folder in the case it is called cfc.
 
Back
Top