And the answer is
Apparently this is a bug in CF9. Under CF8, it works as expected. CF9?
Nopers. Not even a mapping did the trick. Very strange. Will be filing a
bug report.
~|
Order the Adobe Coldfusion Anthology
Ever since CFCs were introduced, the path to them has been derived based
upon the web root. So, given the following directory structure...
/webroot
/com
- myCFC.cfc
/subdir
/com
- myCFC.cfc
... if I were to do the following...
myCFCInstance =
Matt,
I believe that officially CF would always search relative to the current
directory first, which applies to CFC's and custom tags.
In which case if you instantiate the cfc from within subdir, were you also
have a com/mycfc.cfc then this one would be found first.
I have generally found that
Michaels [mailto:r...@michaels.me.uk]
Sent: Sunday, March 13, 2011 7:56 PM
To: cf-talk
Subject: Re: CF9 CreateObject() Maps From Current Directory First?
Matt,
I believe that officially CF would always search relative to the current
directory first, which applies to CFC's and custom tags.
In which
A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com
-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk]
Sent: Sunday, March 13, 2011 7:56 PM
To: cf-talk
Subject: Re: CF9 CreateObject() Maps From Current Directory First
I guess I've stored everything 'cept for static files, App.cfc, and
index.cfm outside the webroot for so many years that it's just been engraved
in my head that it's webroot or mapping. Heh. The interesting thing is,
even with an CFAdmin mapping, I am still getting an instance of the wrong
CFC.
On Sun, Mar 13, 2011 at 10:01 PM, Matt Quackenbush wrote:
Perhaps I should just drink more. :-)
The trick is to be at the same level of intoxication as you were when
writing the code.
Since this is third party code, it may well require a sorta brute
force approach to figuring out the
LOL. The great thing is, I know this dood that could totally automate all
of that with this badass little thingy called cfdistro. I should talk to
him. :-)
On Sun, Mar 13, 2011 at 11:20 PM, denstar valliants...@gmail.com wrote:
On Sun, Mar 13, 2011 at 10:01 PM, Matt Quackenbush wrote:
LOL
Knowing the music is most definitely important!
It makes a difference if it was Dropkick Murphys or Pink Floyd.
Wil Genovese
Sr. Web Application Developer/
Systems Administrator
CF Webtools
www.cfwebtools.com
wilg...@trunkful.com
www.trunkful.com
On Mar 13, 2011, at 11:20 PM, denstar
On Sun, Mar 13, 2011 at 10:28 PM, Matt Quackenbush wrote:
LOL. The great thing is, I know this dood that could totally automate all
of that with this badass little thingy called cfdistro. I should talk to
him. :-)
If only that punk would add some documentation and commit the stuff
he's
10 matches
Mail list logo