0
Good afternoon.
The following application: http://23.88.113.70/public_html/sitemodelo/hqfree/ in codeigniter does not load CSS.
$config['base_url'] = 'http://localhost/sitemodelo/hqfree/';
0
Good afternoon.
The following application: http://23.88.113.70/public_html/sitemodelo/hqfree/ in codeigniter does not load CSS.
$config['base_url'] = 'http://localhost/sitemodelo/hqfree/';
0
To base_url must have the base URL for the files to be loaded. When you inform "http://23.88.113.70/" (as it is on the site), the browser will try to load the files "http://23.88.113.70/js/funcoes.js" instead of "http://23.88.113.70/public_html/sitemodelo/hqfree/js/funcoes.js"
Your base_url must was http://23.88.113.70/public_html/sitemodelo/hqfree/
Browser other questions tagged php codeigniter
You are not signed in. Login or sign up in order to post.
Good afternoon. I put as informed but without success: $config['base_url'] = 'http://23.88.113.70/public_html/sitemodelo/hqfree/';
– MHPA
@MHPA If possible update on the site so I can see the result. You can also remove the
$config['base_url']
.– Valdeir Psr
It is updated on the site. vi in the commands it fails to load multiple files.
– MHPA
It is a VPS in budgetVM still missing configure a domain to replace ip, but first I would like to test the application.
– MHPA
Do the following. Add
<base href="<?php echo base_url(); ?>" />
or else<base href="https://url-completa-do-site" />
in your file where theheader
– Valdeir Psr
I added in my home-page.php this on the site, but nothing appeared
– MHPA
<base href="http://23.88.113.70/public_html/sitemodelo/hqfree/" /> <base href="<? php echo base_url(); ? >" /> <H1>test</H1> <div class="container"> <div class="Row">
– MHPA
@MHPA He must stay in the
header
, if possible after opening the tag. Ex: <html><header><base href="...." /> all the rest of the </header></html> code and remove the $config['base_url']– Valdeir Psr
I added:<! DOCTYPE html> <html> <head> <base href="http://23.88.113.70/public_html/sitemodelo/hqfree/" /> <base href="<? php echo base_url(); ? >" /> <title> <?php echo $this->titleView;? > </title>
– MHPA
Let’s go continue this discussion in chat.
– Valdeir Psr
sorry I forgot to remove the other tag, now this removed.
– MHPA