To use the redirect method of CodeIgniter for page jump, you need to introduce the url auxiliary function. The parameter passing example is as follows:
public function test_redirect() { $this->load->helper('url'); redirect("/test/test_redirect_output?name=10"); } public function test_redirect_output() { $name = $this->input->get('name'); echo "test_redirect hello:" . $name; }
The above introduces the CodeIgniter page redirect parameters, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.