Reputation: 161
I have a application build with CodeIgniter and I have error and my console shows me this:
jquery-1.11.1.min.js:4 GET http://127.0.0.1/admin/assets/plugins/translate/application-en.json net::ERR_CONNECTION_REFUSED
Upvotes: 1
Views: 3492
Reputation:
I had the same ERROR and had to write the config file like so:
$config['base_url'] = getenv('BASE_URL');
.
Using getenv is optional of course, but in order to use <?php echo base_url(); ?>
I needed to add to the application/config/config.php file.
According to the documentation Codeigniter Config
Upvotes: 3