Extending the root Application.cfc
I spent a great deal of time fighting with something yesterday for no good reason. I was trying to extend the root Application.cfc in my application from an Application.cfc inside a subfolder. Here's what I had in my subfolder's Application.cfc:
The problem with this is that CFCs first look in their own directory before walking up to the root of the site, so you'll get errors saying that /Subfolder/Application.cfc can't extend itself.
To get around that you can use another CFC inside the root of your site, that extends your root Application.cfc. I originally suggested this on the CFCDev mailing list using siteroot.cfc, but Sean gave it the more appropriate name of ApplicationProxy. So, in the root of your site (right next to your base Application.cfc), you create a CFC named ApplicationProxy.cfc with nothing but the following code:
<cfcomponent extends="Application"> </cfcomponent>
Then, in /Subfolder/Application.cfc, you use this:
Now, /Subfolder/Application.cfc extends /ApplicationProxy.cfc which extends /Application.cfc, and wallah, you're done :)
Hope that keeps someone else from banging their head against the livedocs for a day.