Request scope variable can be set anywhere and are available to ALL
templates, but variables scope is only available in the template that
created it, and will die once the page has completed compiling.

In your application.cfc you can use onRequeststart to do what you want.

Russ 

-----Original Message-----
From: Will Tomlinson [mailto:[EMAIL PROTECTED] 
Sent: 14 May 2006 21:10
To: CF-Talk
Subject: Dumb Application.cfc ?

I'm working on someone else's app that uses application.cfm. They've got
some variables set in VARIABLES scope. 

Where would I set these in Application.cfc? I tried onRequestStart but that
doesn't work. 

Can you only set a REQUEST scope variable in onRequestStart? Then change my
references to that variable in the code by adding REQUEST. to it? 

Is there some way I can set a regular variables scope variable in app.cfc,
so it'll be available in the same way app.cfm did it? 

Thanks,
Will



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240508
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to