Exchanging URL Parameters
my current url is http: // localhost / ci / test_test / test / 12 / abc
12 is my id and abc is the value to be passed in the function test
now I want my url to look like this http: // localhost / ci / test_test / test / id / 12 / val / abc the function can know that after the id keyword its id and after the value keyword its value
public function test($id="",$code=""){ $data['id']=$id; $data['code']=$code; $this->load->view('welcome_message',$data); }
+3
source to share