title: CakePHP AppController afterFilter variable inheritance weirdness
body: <p>I don't get why the variables are not changed in the AppController. I have a subclass of AppController and in the action method, I am changing a variable of AppController. However this does not get reflected in the afterFilter. </p>
  
  <p>This is CakePHP's AppController</p>
  
  <pre><code>&lt;?php
  
  class AppController extends Controller {
  
      var $xxxx;
  
      function beforeFilter()
      {
          $this-&gt;xxxx = 'this should be changed';
      }
  
      function afterFilter()
      {
          var_dump($this-&gt;xxxx);
          exit;
      }
  
  
  }
  ?&gt;
  </code></pre>
  
  <p>And this is my UsersController</p>
  
  <pre><code>&lt;?php
  
  class UsersController extends AppController {
  
  
      function view( $id )
      {
          echo "From the AppController: {$this-&gt;xxxx} \n";
          $this-&gt;xxxx = 'with this';
      }
  
  }
  ?&gt;
  </code></pre>
  
  <p>This is the output when I run it:</p>
  
  <pre><code>From the AppController: this should be changed
  string 'this should be changed' (length=22)
  </code></pre>
  
  <p>I am expecting this:</p>
  
  <pre><code>From the AppController: this should be changed
  string 'with this' (length=9)
  </code></pre>
  
  <p>Do you know why it behaves this way? Any pointers how to do this correctly?</p>