Title: RE: Global variables
Thread: Global variables
Forum: Need Help?
Conference: ColdBox
User: sanaullah73 Hi Tony,
onRequestStart is similar to Application.cfc onRequestStart()
method.
<Setting name="RequestStartHandler" value="ehMain.onRequestStart"/>
this setting tells coldbox where is the onRequestStart method, it could be in
any of your CFC.
secondly... what type of global-vars you have
1: Static
then you can do this...
[code]
<YourSettings>
<Setting name="BaseURL"
value="http://www.abc.com/"/>
<Setting name="CFMapping" value="NewApp1"/>
</YourSettings>
then in your cfc you can getsetting("BaseURL")
[/code]
2: dynamic
Then could be store in these scopes
Application
Client
Session
OR
ColdBox Caching...