We did that on a search engine we developed once upon a time. We called
/search/dsp_search.cfm from /products/index.cfm. It was not pretty. Any
variables that dsp_search.cfm depended on were normally defined in
app_globals.cfm and more to the point in /search/app_locals.cfm. All these
variable defined and initialized had to be duplicated in
/products/app_locals.cfm.
After that maintenance nightmare, I do not recommend doing it that way. We
should have from the beginning set up the search circuit so that it could be
included or <cf_module>d as a whole.
Jeffrey B. Marsh
Web Developer
Providence Health System
Technical Services Organization
(360) 493-4018
[EMAIL PROTECTED]
-----Original Message-----
From: Nat Papovich [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 19, 2000 8:39 AM
To: Fusebox
Subject: RE: the dot notation
That is a good idea, Dustin, and is something that I've tried in the past.
I'm not sure why it didn't work out though. Maybe because if you ever want
to include dsp files across multiple circuits, you get hosed.
Hey Hal or Jeff!
What happens if I want to include a dsp_ file from another circuit? Is that
legal? Things are all wacky-screwy if that happens, right?
NAT
> -----Original Message-----
> From: Dustin Breese [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 19, 2000 8:06 AM
> To: Fusebox
> Subject: RE: the dot notation
>
>
> Perhaps a penny short and a few days late, but...
>
> What do you think about each circut app having a "NAME" which
> points to the
> directory it resides?
>
> For example, in my APP_GLOBALS file, I set
> REQUEST.ROOTDIR="/" (or whatever)
> and in my APP_LOCALS for the PRODUCTS component, set
> REQUEST.PRODUCTS="#REQUEST.ROOTDIR#/products". I can use
> this var anywhere
> I need it in the PRODUCTS component and don't have to worry
> about where the
> physical app dir is.
>
> So, my images would come out as <img
> src="#REQUEST.PRODUCTS#/images/hello.gif">.
>
> -Dustin
>
>
> > -----Original Message-----
> > From: Marsh, Jeffrey B [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 18, 2000 10:42 AM
> > To: Fusebox
> > Subject: RE: the dot notation
> >
> >
> > No. But Noah was an amateur ship builder. The point of this
> supposedly
> > humorous line, is that even professionals can get wrong and
> amateurs can
> > sometimes surpass the professionals. It's funny. I think it
> especially
> > applicable to software engineering. Gee wiz...
> >
> > ---
> > Jeffrey B. Marsh
> > professionals built the Titanic; amateurs built the Ark
> >
> > -----Original Message-----
> > From: Bill Killillay [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, December 15, 2000 1:03 PM
> > To: Fusebox
> > Subject: RE: the dot notation
> >
> >
> > > > professionals built the Titanic
> > > > amateurs built the Ark
> > I would hardly call God an amateur or Noah for that matter.
> >
> >
> > > They didn't sail the Ark into a Iceberg.
> > > And it lasted 40 days and 40 nights.
> > And EVERYBODY on it survived and walked off of it!
> >
> > > Titanic lasted 2 days.
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists