title: play 2.1.5 framework scala : Defining and accessing Global variables
body: <p>I am trying to define a few variables that'll be available in all my app controllers.</p>
  
  <p>I thus followed the steps in Play 2 doc to define a global settings object.</p>
  
  <p>This part seems ok but then i can never access those variables inside a controller.</p>
  
  <p>Here is the code i use to initialize those global variables :</p>
  
  <pre><code>object Global extends GlobalSettings {
      val name = "My name"
  }
  </code></pre>
  
  <p>In this file $ROOT/app/Global.scala</p>
  
  <p>Then is in controller $ROOT/app/controllers/Application.scala i call :</p>
  
  <pre><code>Global.name
  </code></pre>
  
  <p>And i get a :</p>
  
  <pre><code>not found: value Global
  </code></pre>
  
  <p>If anyone has an idea !</p>
  
  <p>Thanx in advance.</p>