CodeIgniter Forums

Full Version: using base_url in errors/error_404.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

El Forum

[eluser]Unknown[/eluser]
Im trying to insert an image inside my error_404.php. I used this method and seems i can handle most of the CI errors:
Code:
<?php $config =& get_config(); ?>

And in my image tag:
Code:
<img src="&lt;?php echo $config['base_url']; ?&gt;images/404.jpeg" alt="forbidden" />

Hope this could help someone.
Pages: 1 2