I am using the CodeIgniter framework to work on my latest website. In my views, I am trying to load graphics from another folder, external of the CodeIgniter installation.
However, CodeIgniter is rewriting the links when I use absolute links to the resources.
Is there a way I can configure it to allow absolute links, rather than re-writing them?
I think you probably need to use the URL helper function base_url()
Like so:
This example assumes the directory is in the root of your public_html, and that $config[‘base_url’] is set correctly in application/config/config.php.
You also need to load the URL Helper in your controlling class.
Like so
If your still having problems, go back into application/config/config.php and try changing:
To: