Question : Coldfusion - Invoking CFC 'up' a directory?

I'm aware that the easiest way of doing this is to create a mapping in CF Admin, however I'm trying to find the most flexible method for portability in this instance - it's entirely possible that upon deployment, we won't have access to CF Admin.

Heres the current structure;

domain.com/sitefolder/com/cfcs-in-here

Within domain.com/sitefolder/anyfile.cfm I can successfully invoke the cfcs using com.cfcname

However, I'm now trying to invoke a cfc from domain.com/sitefolder/subfolder/file.cfm

In 'normal' terms I would find the cfc by using ../com/cfcname - but obviously I can't do that.

I believe there are solutions out there that I could use if the site itself was in the root domain (i.e domain.cfm), but I'm unsure if theres a way of doing it taking into account the subfolder (under which, for reference, the Application.cfm resides).

Answer : Coldfusion - Invoking CFC 'up' a directory?

I always invoke my cfc's from the root, so:
sitefolder.com.cfcname

Random Solutions  
 
programming4us programming4us