Good morning! I'm doing a small site using Codeigniter 3 and Bootstrap 3 .
On PC, CSS and JS work perfectly well, but when I try to access it through the Smartphone , by localhost, it loads only HTML.
Note : I'm using XAMPP.
What can it be?
* CSS Call Example:
<link href="<?php echo base_url('assets/css/site.css'); ?>" rel="stylesheet">
* Example of JS call:
<script src="<?php echo base_url('assets/js/site.js'); ?>"></script>
* Base URL is configured this way:
$config['base_url'] = 'http://localhost/teste';
* On the PC, type the URL: localhost / test. - It works normally.
* On the smartphone I type the IP address instead of "localhost": eg: 192.168.x.x / test . - Does not load CSS, nor JS. Only HTML.