That works until the cfc being extended (parent) has the same name as the cfc doing the extending (child). If I have an application.cfc in the blog directory and I want it to extend the application.cfc that's in the root, I have to use "/.application"
On Fri, Feb 26, 2010 at 1:05 AM, Matt Quackenbush <[email protected]> wrote: > > When requesting a CFC (either by createObject() or extends=""), you must > supply a dot-notated path that is absolute to the web root. For instance... > > - /wwwroot > baseapp.cfc > - - /blog > myclass.cfc > > For /blog/myclass.cfc to extend /baseapp.cfc it would be... > > extends="baseapp" > > You could, of course, use a mapping, but that just makes a path outside the > web root accessible (by CF internally) as though its residence was inside > the web root. In other words, you'd still be calling an absolute path. > > The bottom line is, relative paths do not work with CFCs. > > HTH > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331155 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

