title: Global Access Variable Rights, That Are Set In My CakePHP AppController
body: <p>I am having problems with trying to set global variables with my CakePHP 2.2.2 app. I have defined the following inside my AppController : </p>
  
  <pre><code> App::uses('Controller', 'Controller');
  
   class AppController extends Controller {
  
    function beforeFilter() {
  
     $MenuTest = "MENU TEST";
     $this-&gt;set('Menu', $MenuTest);
  
    } //End of beforeFilter()
  }
  </code></pre>
  
  <p>This is meant to set $MenuTest as a global variable right? So I should be able to access $MenuTest on any controller or view I want? An less I am missing something?</p>
  
  <pre><code>App::uses('AppController', 'Controller');
  
  class PagesController extends AppController {
  
  public $name = 'Pages';
  public $uses = array();
  
   public function display() {
      debug( $Menu);
      die();
      $this-&gt;render('home');
   }//End of function display()
  
   function test () {
      echo $Menu;
      echo 'This is testing a new link';
      die();
   }//End of function test()
  }
  </code></pre>
  
  <p>When I load my page, all that debug gives me is a 'null'. Again the same when I use the test function? </p>
  
  <p>Please help? What I am doing wrong?</p>
  
  <p>Thanks, Glenn</p>