Welcome Guest, Not a member yet? Register   Sign In
How to Redirect within a controller functions with passing id
#2

[eluser]danmontgomery[/eluser]
Code:
function post_list($id) {
    // ...
}

function update_post() {
    $id = $this->input->post('id');

    // ...

    return $this->post_list($id);
    // or
    redirect('controller_name/post_list/'.$id);
}


Messages In This Thread
How to Redirect within a controller functions with passing id - by El Forum - 03-30-2011, 04:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB