Hi I need to define a global variable to use in anywhere of my application. I declare a global variable baseUrl in my app.js. Please see below
A simple example
In your app.js add the variables. To test you variables type app.app.VariableName within your google chrome console. Chrome will autocomplete for you.
Ext.application({
name: 'app',
/**
* Custom Variables
* Use app.app.baseUrl to access the value
*/
baseUrl : 'http://example.com',
variable01 : 'foo',
variable02 : 'bar',
...
});