Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Call to undefined function redirect()
#1

[eluser]jblack199[/eluser]
As per the title I am having issues with the redirect function on my script. I've looked and looked and cant figure out the issue.

in my autoload.php I've got the following:

Code:
$autoload['helper'] = array('valid_admin', 'url', 'form');

valid_admin is a custom helper, the other two are as it should be.

and here is my index.php which has been changed in the routes.php from welcome to index so that part is working fine.

Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Index extends CI_Controller {
    function index () {  
            redirect('/login', 'refresh');
    }
}

and the issue i'm getting is:
Fatal error: Call to undefined function redirect() in /home/thecodes/public_html/qweeri/application/controllers/adm/index.php on line 4

any idea whats up? thanks in advance, 'cause i cant seem to see why its not working...


Messages In This Thread
Fatal error: Call to undefined function redirect() - by El Forum - 08-08-2011, 01:56 AM
Fatal error: Call to undefined function redirect() - by El Forum - 08-08-2011, 02:01 AM
Fatal error: Call to undefined function redirect() - by El Forum - 08-08-2011, 02:05 AM
Fatal error: Call to undefined function redirect() - by El Forum - 08-08-2011, 02:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB