sampoyigi wrote
Sorry this is comming late.
Can you share what you've done so far? Whats the issue with routing?
HI Sam,
I tried to add https://github.com/chriskacerguis/codeigniter-restserver this to TI app.
1. I've created controller on main directory main/controlller/api/sample.php with the sample code on rest server repo.
2.
[font=-apple-system, BlinkMacSystemFont,]application/libraries/Format.php[/font][font=-apple-system, BlinkMacSystemFont,] and [/font][font=-apple-system, BlinkMacSystemFont,]application/libraries/REST_Controller.php > ti/system/libraries
[/font] 3.
[font=-apple-system, BlinkMacSystemFont,]application/config/[/font][font=-apple-system, BlinkMacSystemFont,]rest.php to ti/system/[font=-apple-system, BlinkMacSystemFont,]tastyigniter/config/[/font][/font]
[font=-apple-system, BlinkMacSystemFont,][font=-apple-system, BlinkMacSystemFont,]When I tried to access url like this localhost/samplesite/api/news, I got this error on php_error_log[/font][/font]
PHP Fatal error: Call to a member function helper() on null in .../system/libraries/Form_validation.php line 147
Any Suggestion?