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

#1
[eluser]Abishek R Srikaanth[/eluser]
I would like to use the base_url helper function on the errors/error_404.php and I am having trouble using it. I have tried the following ways.

Method 1:
1. Auto Loaded the URL helper.
2. Used base_url

Got the following error message when doing Method 1
"Call to an undefined function base_url"

Method 2:
Code:
$CI = '';
$CI =& get_instance();
$CI->load->helper('url');
$CI->base_url();

Get the following error when using Method 2.
"Class 'CI_Controller' not found in /var/.......//system/core/CodeIgniter.php on line 233"

Could someone please help me on this.


Messages In This Thread
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 12:02 AM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 01:57 AM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 02:04 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, 02:24 AM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 02:54 AM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 02:59 AM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 03:15 AM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 11:06 AM
using base_url in errors/error_404.php - by El Forum - 05-09-2012, 05:37 PM
using base_url in errors/error_404.php - by El Forum - 05-06-2013, 09:43 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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