Just the one variable but not the rest of the template?

I don't think you can do that.

You could set up an apps_globals.cfm to hold all of your sitewide variables
and include that in each Application.cfm.

If you don't mind having access to the rest of your application scoped
variables, you could also just give them the same application name in your
<cfapplication> tag.  You would need to be careful about overwriting the
application variables then, and possibly naming something the same way.

Tim

-----Original Message-----
From: Will Tomlinson [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 07, 2005 10:44 PM
To: CF-Talk
Subject: Including App.cfc in App.cfc


If I have an Application.cfc in the site root, and it contains an
APPLICATION.DSN variable, and there's an admin folder with its own App.cfc,
how would I include the root's APP.DSN inside the admin folder's app.cfc?

When I used App.cfm I just included the root App.cfm.

Thanks,
Will




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211404
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to