Extending with a dynamic cfc path
Posted on 2008-10-21
Using some cfcs in that are subdivided in the CFC directory. For instance have myCFC and myChildCFC folders. The myCFC folder contains myCFC.cfc and myChildCFC contains myChildCFC.cfc. I'm trying to have myChildCFC extend myCFC. But my root folder (call it myWebsite) needs to be dynamic, so could have myWebsite2 for instance. I'm unable to put anything but a constant expression in the extends as it throws an error. How do I get the extend attribute in myCFC.cfc to see the myChildCFC.cfc. I tried extends="cfcs.myCFC.myCFC". This doesn't seem to work.