title: Cakephp 2 - Use Auth-Component in another Component
body: <p>I am trying to access the AuthComponent in another component using</p>
  
  <pre><code>App::uses('AuthComponent', 'Controller/Component');
  class AccessComponent extends Object {
  
  public function foo() {
      $this-&gt;user = $this-&gt;Auth-&gt;User();
  }
  </code></pre>
  
  <p>But retrieve an error:</p>
  
  <blockquote>
    <p>Undefined property: AccessComponent::$Auth
    [APP\Controller\Component\AccessComponent.php, line 21]</p>
  </blockquote>