CodeIgniter Forums
Create website API using codeigniter-restserver -> Fatal error: Cannot instantiate abstract class REST_Controller in - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Create website API using codeigniter-restserver -> Fatal error: Cannot instantiate abstract class REST_Controller in (/showthread.php?tid=53514)



Create website API using codeigniter-restserver -> Fatal error: Cannot instantiate abstract class REST_Controller in - El Forum - 07-27-2012

[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




Create website API using codeigniter-restserver -> Fatal error: Cannot instantiate abstract class REST_Controller in - El Forum - 07-27-2012

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

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


Create website API using codeigniter-restserver -> Fatal error: Cannot instantiate abstract class REST_Controller in - El Forum - 07-27-2012

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

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


Create website API using codeigniter-restserver -> Fatal error: Cannot instantiate abstract class REST_Controller in - El Forum - 07-27-2012

[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


Create website API using codeigniter-restserver -> Fatal error: Cannot instantiate abstract class REST_Controller in - El Forum - 07-27-2012

[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...


Create website API using codeigniter-restserver -> Fatal error: Cannot instantiate abstract class REST_Controller in - El Forum - 07-27-2012

[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