How to go another url in codeigniter?

Asked  Jul 25, 12:52 am 53 Views Add Your Answer
Asked  Jul 25, 12:52 am
0 Dislikes
0 Comments

1 Answers

Added  Jul 25, 12:55 am

Go to another url use codeigniter redirect() method

<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Controller_name extends CI_Controller {

    public function index() {
        // load the url helper
        $this->load->helper('url');
        redirect('controller_name/function_name');
    }

}

0 Likes 0 Dislikes
0 Comments
×
Google login
SignUp with Email
X