redirect() throwing error

#1
[eluser]VirtualDevel[/eluser]
Hi guys, I get the following error when I call redirect() :

Quote:Fatal error: Call to a member function site_url() on a non-object in /var/www/vhosts/[host-name]/httpdocs/system/helpers/url_helper.php on line 45

Here is the code in the controller:
Code:
if ($this->do_upload()) {
   redirect('/admin/stuff/editor', 'refresh');
}

Not sure why I am getting this, any ideas?


Messages In This Thread
redirect() throwing error - by El Forum - 03-04-2008, 02:28 PM
redirect() throwing error - by El Forum - 03-04-2008, 03:06 PM
redirect() throwing error - by El Forum - 03-04-2008, 03:14 PM
redirect() throwing error - by El Forum - 03-04-2008, 03:39 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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