Or better still why not
<cfmodule datasource="anything">
and reference it with the Attributes scope..... This way it becomes a
resusable piece of code that might be useful for other sites without much
modification.
regards
Andrew Scott
Senior Cold Fusion Application Developer
-----Original Message-----
From: Ryan [mailto:[EMAIL PROTECTED]]
Sent: 05 December 2000 07:20
To: CF-Talk
Subject: Re: Application.cfm
At 13:19 12/4/00 -0500, you wrote:
>Would application variables be available to a module (i.e. a template
called
>by CFModule) ? And if they are how far up the tree will CF look for the
>application.cfm file?
>
>My problem is I set a variable called datasource equal to my DSN name. I
>attempt to reference #datasource# and even #application.datasource# in my
>module and it isn't available.
>
>Any help or suggestions would be appreciated.
>
>Neil
I think you can use request.datasource and access it from any page,
module, include or custom tag.
RPS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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