title: CodeIgniter Not Able to load REST Library
body: <p>I am trying to set up Philip Sturgeon’s REST Library. I did exactly what the Readme file told me to do:</p>
  
  <p>Drag and drop the <strong>application/libraries/Format.php</strong> and <strong>application/libraries/REST_Controller.php</strong> files into your application’s directories. Either autoload the <code>REST_Controller</code> class or <code>require_once</code> it at the top of your controllers to load it into the scope. Additionally, copy the <strong>rest.php</strong> file from <strong>application/config</strong> in your application’s configuration directory.</p>
  
  <p>I dragged three files into corresponding folders. I also checked out this article on Nettus: <a href="http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/" rel="nofollow">http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/</a></p>
  
  <p>I try to autoload it using:</p>
  
  <pre><code>$autoload['libraries'] = array('REST_Controller', 'database', 'session', 'form_validation'); 
  </code></pre>
  
  <p>I also tried</p>
  
  <pre><code>$autoload['packages'] = array(APPPATH.'REST_Controller', '/libraries/REST_Controller.php'); 
  </code></pre>
  
  <p>And then at last I tried:</p>
  
  <pre><code>require(APPPATH'.libraries/REST_Controller.php'); 
  </code></pre>
  
  <p>They all don’t work. Also I’m very certain I am using CodeIgniter <strong>2.1.4</strong>, because I downloaded fresh from the main website.</p>
  
  <p>Does anyone know what’s going on?</p>
  
  <p><strong>By they don't work, I mean the server crashed (I use MAMP).</strong></p>