• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using base_url in errors/error_404.php

#11
[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.


Messages In This Thread
using base_url in errors/error_404.php - by El Forum - 05-08-2012, 11:02 PM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 12:57 AM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 01:04 AM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 01:15 AM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 01:24 AM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 01:54 AM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 01:59 AM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 02:15 AM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 10:06 AM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 04:37 PM
using base_url in errors/error_404.php - by El Forum - 05-06-2013, 08:43 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.