输入banner图图片脚本导航/分类

CodeIgniter页面redirect传参

页面跳转使用到CodeIgniter的redirect方法,需要引入url辅助函数,传参例子如下:

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;
}


以上就介绍了CodeIgniter页面redirect传参,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。