Redirect() Help needed (solved) |
[eluser]Jonny5ive[/eluser]
Hi, I've set up the add/edit tutorial http://codeigniter.com/wiki/Add_Edit_Views/, however I cannot get the redirect to work. // the code at the bottom of controller redirect('departments', 'redirect'); Firstly I thought the second parameter could only be 'location' or 'refresh'. Should 'redirect' work? I've checked and there doesn't appear to be anything being outputted to the browser before the redirect, however it just won't work! Any advice or help would be greatly appreciated, the n00b
[eluser]bas_vdl[/eluser]
did you load the url helper? Code: $this->load->helper('url');
[eluser]Jonny5ive[/eluser]
[quote author="bas_vdl" date="1253740367"]did you load the url helper? Code: $this->load->helper('url'); Wow! that hit the nail on the head! Nice1 dudes :-) |
Welcome Guest, Not a member yet? Register Sign In |