[thelist] CF: Fusebox question

Chris Evans chris at fuseware.com
Tue Oct 24 08:33:54 CDT 2000


I don't use Fusebox, but if you want a variable accessible in Custom Tags
and include files, use the Request scope.

<CFSET Request.DSN="MyDatasource">

This is a new scope, I believe first available in 4.5.


Chris Evans
chris at fuseware.com
http://www.fuseware.com


-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Frank
Sent: Tuesday, October 24, 2000 7:37 AM
To: thelist at lists.evolt.org
Subject: [thelist] CF: Fusebox question



I'm writing my first Fusebox app. Remarkably clean, but incredibly
hard to trace when one is used to using the browser's URL bar.

I have an index file with an include for app_globals, which contains
my datasource definition.

Every fuseaction is either cfincluded or cfmoduled into the index
page though a case statement. Why is it that a page that is cfmoduled
cannot access the datasource wheras the page that is cfincluded can?

It seems a shame of have to include app_globals in every query page,
when (to my mind at least) the point is to create a minimalist,
highly organized pseudo-object orient site.

I'd like to keep a single include of app_globals in the index page,
yet have the datasource available to every page. Can someone suggest
a method?

Thanks.
--

Frank Marion                      Loofah Communications
frank at loofahcom.com               http://www.loofahcom.com

---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !






More information about the thelist mailing list