Welcome Guest, Not a member yet? Register   Sign In
Create website API using codeigniter-restserver -> Fatal error: Cannot instantiate abstract class REST_Controller in
#1

[eluser]seba22[/eluser]
Hello,

I need create API with json output.

I found :

https://github.com/philsturgeon/codeigniter-restserver

I follow a description.
I download "CodeIgniter_2.1.2" and unpack to my webserver.

Next i download from https://github.com/philsturgeon/codeigniter-restserver
file philsturgeon-codeigniter-restserver-2.6.0-33-g0b871cf


I copy from that file /application/libraries/Format.php and /application/libraries/REST_Controller.php to same path but on my webserver.

Next i copy /application/config/rest.php to same path but on my webserver.

Next i edit autoload.php and change:

Code:
$autoload['libraries'] = array();
to
Code:
$autoload['libraries'] = array('REST_Controller');


Upload all files.

When i'm try to run my website index.php
i got


Code:
Fatal error: Cannot instantiate abstract class REST_Controller in /MY PATH/system/core/Loader.php on line 1099


Please help



Messages In This Thread
Create website API using codeigniter-restserver -> Fatal error: Cannot instantiate abstract class REST_Controller in - by El Forum - 07-27-2012, 03:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB