Welcome Guest, Not a member yet? Register   Sign In
Where does the main content go?
#11

[eluser]General1337[/eluser]
no I can't, in fact I can't access anything through CI using the local routes(/home/username/public_html/whatever.jpg) I know for a fact it finds it because when I checked my error logs and put a image that didn't exist it gave me an error that it couldn't find it, however when I used a picture that existed it found it but didn't load it. I was successful making all my links like this: "<?php echo $baseth;?>images/home.jpg" $baseth is the direct URL to the CI folder.
#12

[eluser]General1337[/eluser]
Okay, after checking some more it looks like the problem is because it reads the links like this CI/index.php/images/whatever.jpg It shouldn't be index.php :\.
#13

[eluser]Pascal Kriete[/eluser]
Try using base_url from the url helper.

Code:
<?= base_url(); ?>images/whatever.jpg

Before doing that make sure that $config['base_url'] in config/config.php is set correctly.




Theme © iAndrew 2016 - Forum software by © MyBB