Home > Backend Development > PHP Tutorial > CodeIgniter page redirect parameter passing

CodeIgniter page redirect parameter passing

WBOY
Release: 2016-07-29 08:59:56
Original
1480 people have browsed it

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;
}
Copy after login


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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template