title: cake php AppController and inheritance
body: <p>In many tutorial of Acl component in cakephp
  i got instruction that add component either in AppController or in all the other controllers which inherits AppController.......</p>
  
  <p>but problem  is </p>
  
  <pre><code>var $components=array('Auth',Acl);
  </code></pre>
  
  <p>when i use the above line in AppConroller i cant use the Auth or Acl component...
  but when i use the same code in all the child classes it works fine........</p>
  
  <p>what will be the problem</p>
  
  <p>here is my appController</p>
  
  <pre><code>&lt;?php
  class AppController extends Controller {
  
       var $helpers = array('Html', 'Form', 'Session','CssMenu');
       var $components = array('Auth');
  
       function beforeFilter() {
          //Configure AuthComponent
          $this-&gt;Auth-&gt;authorize = 'actions';
          $this-&gt;Auth-&gt;authError = "Sorry, you are lacking access.";
          $this-&gt;Auth-&gt;userModel = 'Login';
  }
  
  }
  ?&gt;
  </code></pre>
  
  <p>code for usersController</p>
  
  <pre><code>&lt;?php
  class userssController extends AppController{
      var $name="Logins";
      //var $components = array('Auth');
      var $layout='login';
  
      function beforeFilter() {
          parent::beforeFilter();
          $this-&gt;Auth-&gt;allow('*');
          $this-&gt;Auth-&gt;loginRedirect = array('controller' =&gt; 'homes', 'action' =&gt; 'index');
      }
  }
  ?&gt;
  </code></pre>
  
  <p>when i comment the line 4 this will b error
  on uncomment it works fine
  thanks in advance</p>
  
  <p>any help will be appreciated.</p>