title: Codeigniter Class 'REST_Controller' not found
body: <p>I'm having a problem with the popular REST API codeigniter maintained by Chris Kacerguis.I created a Datadiri controller that looks like this: </p>
  
  <pre><code>&lt;?php
  require (APPPATH.'/libraries/REST_Controller.php');
  
  class Datadiri extends REST_Controller{
      function __construct($config = 'rest'){
          parent::__construct($config);
      }
      //tampilkan data
      function index(){
          $buku = $this-&gt;db-&gt;get('perpustakaan');
          $this-&gt;response($buku, 200);
      }
  }
  </code></pre>
  
  <p>This is Rest_controller.php
  <a href="https://github.com/chriskacerguis/codeigniter-restserver/blob/master/application/libraries/REST_Controller.php" rel="nofollow noreferrer">https://github.com/chriskacerguis/codeigniter-restserver/blob/master/application/libraries/REST_Controller.php</a></p>
  
  <p>But Still same, the error Class 'REST_Controller' not found. how can i solve this?</p>
  
  <blockquote>
    <p>Fatal error: Class 'REST_Controller' not found in
    C:\xampp\htdocs\CodeIgniter\application\controllers\datadiri.php on
    line 4 A PHP Error was encountered</p>
    
    <p>Severity: Error</p>
    
    <p>Message: Class 'REST_Controller' not found</p>
    
    <p>Filename: controllers/datadiri.php</p>
    
    <p>Line Number: 4</p>
    
    <p>Backtrace:</p>
  </blockquote>