title: CakePHP - Include class from a directory outside the app directory
body: <p>I am trying to include a miscellaneous library class from outside my app (it gets used by different apps).</p>
  
  <p>My app is located at:</p>
  
  <pre><code>/var/www/websites/my_website/app/
  </code></pre>
  
  <p>And the class is located at:</p>
  
  <pre><code>/var/www/websites/libs/CakePHP/MyClass.php
  </code></pre>
  
  <p>In my bootstrap I'm struggling to figure out how to add the path for loading the classes from that directory:</p>
  
  <pre><code>App::build(array('Lib' =&gt; array('/var/www/websites/lib/')));
  
  App::uses('MyClass', 'CakePHP');
  
  $myClass = new MyClass();
  </code></pre>