I'm having a problem with the popular REST API codeigniter maintained by Chris Kacerguis.I created a Datadiri controller that looks like this:
<?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->db->get('perpustakaan');
$this->response($buku, 200);
}
}
This is Rest_controller.php https://github.com/chriskacerguis/codeigniter-restserver/blob/master/application/libraries/REST_Controller.php
But Still same, the error Class 'REST_Controller' not found. how can i solve this?
Fatal error: Class 'REST_Controller' not found in C:\xampp\htdocs\CodeIgniter\application\controllers\datadiri.php on line 4 A PHP Error was encountered
Severity: Error
Message: Class 'REST_Controller' not found
Filename: controllers/datadiri.php
Line Number: 4
Backtrace: