0
I am coding an API with Codeigniter and, as many have recommended, I am using the library Codeigniter Rest Server(Repository). I followed the tutorial recommended by the developer himself but I got an error. The problem happens when I require the file Rest_controller.php, in some part of the script it tries to read the language and fails saying that it failed to read the file. I put the language file in the application and system folders.
In the archive config.php I have it:
$config['language'] = 'english';
These are the paths of both language directories:
application/language/English/rest_controller_lang.php
system/language/English/rest_controller_lang.php
This is the mistake:
Unable to load the requested language file: language/English/rest_controller_lang.php
I appreciate any help.
Take a look at the file: application/config/Rest.php, see how the $config['rest_language'] variable is doing. In the case of English, it should be "$config['rest_language'] = 'English'".
– Bruno Rigolon
Yeah, it’s just like that.
– Guilherme Ramalho