The following code, shows how you can define globals in sencha touch. globals are defined once and used throughout the entire application.