title: "global" does not work in CakePHP 2.1.1 views
body: <p>I am using PHP 5.3.8 with CakePHP 2.1.1.</p>
  
  <p>This is my view (the layout is empty, actually it only outputs the view itself)</p>
  
  <pre><code>&lt;?php   
  // $present is not a view variable
  $present = 'Hello World!';
  
  class ApplicationsPDF
  {   
      public function CreateApplicationTable()
      {
          global $present;
          exit(var_dump($present));
      }
  }
  
  
  $pdf = new ApplicationsPDF();
  $pdf-&gt;CreateApplicationTable();
  ?&gt;
  </code></pre>
  
  <p>The output is <code>null</code> instead of "Hello World!".</p>
  
  <p>If I copy and paste this code into a single file (which I directly run from the browser), it perfectly works!</p>
  
  <p>So it must be a CakePHP bug. Does anyone know it?</p>