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

#2

[eluser]seba22[/eluser]
I found solution:

https://github.com/philsturgeon/codeigni...issues/139
#3

[eluser]PhilTem[/eluser]
Perfect. Great.

Please, would you be so kind and make your thread/problem as [solved]? Thanks!
#4

[eluser]seba22[/eluser]
[quote author="PhilTem" date="1343390374"]Perfect. Great.

Please, would you be so kind and make your thread/problem as [solved]? Thanks![/quote]

Yes, i will but please tell me how.
I can't see that button.

Regards
#5

[eluser]PhilTem[/eluser]
You need to edit your first post and add a [solved] to the title.

PS: I just saw, you have too little posts so you probably won't be able to see the 'edit'-button I guess...
#6

[eluser]seba22[/eluser]
[quote author="PhilTem" date="1343396549"]You need to edit your first post and add a [solved] to the title.

PS: I just saw, you have too little posts so you probably won't be able to see the 'edit'-button I guess...[/quote]

When i'm try edit first topic, i got this ->
Code:
Error Message

Due to a heavy increase of spam within our community, the privilege of posting certain content is currently reserved for active community members and those who have purchased our software.

If you feel you have received this in error, please contact [email protected] with a support key of apes56qh-qm808ssk-0kwkow80-g88co8s for more information.


Hmmm




Theme © iAndrew 2016 - Forum software by © MyBB