Ya know, this would be a great time for Gabe et al, to step in with the
Application Object Model.
Try something like this:
<cfset
ThisAppsStructure=listlast(trim(getdirectoryfrompath(getcurrenttemplatepath(
))),"\")>

Then, when you want to use a request variable, you go like so:
<cfset "request.#ThisAppsStructure#.imagedir"="wankedy-wank"> or whatever
you please.

Dang, I should check out the AOM presentation...

NAT

> -----Original Message-----
> From: Ken Beard [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 15, 2000 1:48 PM
> To: Fusebox
> Subject: re: dot notation
>
>
> seems like the only problem with using the
> <cfset
> request.imgdir=listappend(request.imgdir,listlast(trim(getdire
ctoryfrompath(getcurrenttemplatepath> ())),"\"),"/")>
> is when you aren't using the same-named global
> variables.  You (or someone else) is writing an
> application with the img dir in request.path.images
> and
> then the code in the app_locals bombs out.  Just
> 2cents.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        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

Reply via email to