0

when i run this code

public function LogInn()
    {
        $email = $this->input->post('email');
        $password = $this->input->post('password');
        $this->load->model('LogIn_Model');
        $a = $this->LogIn_Model->Create_Session($email,$password);
        if($a==1)
        {
        redirect('Hadees/word');
        }
    }

give an Error in Log file

ERROR - 2018-09-06 12:39:56 --> Severity: Error --> Call to undefined function redirect()

and not redirect

1 Answers1

1

load url in same file or in autoload file its work

same file

$this->load->helper('url'); //load url helper

autoload file

$autoload['helper'] = array('url');

Bhargav Chudasama
  • 6,928
  • 5
  • 21
  • 39