philsturgeon/codeigniter-restserver — Issue #69: Conflict when using together with Rest-Client library
Author: luoihoc
Created: 2011-11-25 16:16:41+00:00
State: open

I installed rest-client library using sparks command line. When i try to load the rest-client library in a Rest Controller, i have the following error

PHP Fatal error: Cannot access protected property Example::$rest in /home/tran/public_html/peacemoon/system/core/Loader.php on line 1095

This is the code in my Rest Controller

public function test_get() {
//$this->load->model('M_Event');
//$result = $this->M_Event->getEvents();
$this->load->spark('restclient/2.0.0');

// Load the library
$this->load->library('rest');

$this->response('hello', 200);
}