I guess you'd have the same problem any time you wanted to extend a CFC of
the same name that is in the root. I can't think of a way around that aside
from using a root mapping.

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Daniel Short
Sent: Tuesday, April 12, 2005 4:03 PM
To: [email protected]
Subject: RE: [CFCDev] Problem Extending Root Application.cfc

> Actually, you can, see http://www.macromedia.com/go/9ce734f4
> 
> Dan, if you create a CF mapping called root, will root.Application 
> work?

I suppose it would, but then we run into the problem (as others have said
already) of trying to use this type of set up in shared environments or
distributed applications that are no longer under our control.

While the article you sent has some good information, it also has everything
in a subdirectory. If you remember the little demo password protection
scheme I showed you at Powered by Detroit, I had everything in a
subdirectory, and it worked wonderfully. While trying to document how it
works, I set everything up in the root of a new site, and now I'm stuck,
since it's impossible to extend the root application.cfc because of the way
the extends attribute searches for CFCs. It first looks in it's current
directory (and finds itself and throws an error about not being able to
extend itself), and *then* looks in other folders...

At this point I'm completely stuck...

Dan




----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]





----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]


Reply via email to