title: Loading Vendor Files in CakePHP 2.0
body: <p>I'm currently upgrading one of our projects to CakePHP 2.0. Unfortunately the "first line" of code makes problems, and I can't find a solution to that problem.</p>
  
  <p>In CakePHP 1.3 I had an <code>App::import("Vendor", "facebook");</code> statement right before the <code>AppController</code> class gets defined. The referenced file is located under <code>/app/vendors/facebook/facebook.php</code> (and includes itself the <code>base_facebook.php</code> file).</p>
  
  <p>I tried many different ways to include the file now in CakePHP 2.0 according to the File naming and class loading described here: <a href="http://bakery.cakephp.org/%20articles/view/4da67d39-c8bc-46a9-81b0-1178adcbdab8">File naming and class loading changes in CakePHP 2.0</a></p>
  
  <p>I renamed the path to <code>app/Vendor/Facebook/Facebook.php</code>, or <code>app/Vendor/Facebook/facebook.php</code>, and tried following methods:</p>
  
  <pre><code>App::uses("Facebook", "Vendor/Facebook");
  App::uses("Facebook", "Facebook");
  App::uses("Facebook", "Vendor/Facebook/Facebook.php");
  App::uses("Facebook", "Vendor");
  </code></pre>
  
  <p>Has anyone find a way to reference a vendor file yet? Because of the lazy loading the methods above do not fire an error/warning, so it's kind of annoying to debug this...</p>