How to pass the uri->segment values to other controller in codeigniter? I have this URL http://localhost/sample/controller_1/view/73
and I need to get the 73
and use it on another controller like controller_2. Obviously I could get it using end($this->uri->segments);
in the controller_1. But I need to pass it on the controller_2. How could I accomplish this?
Also, how could I get the current url using different controller? In my controller_2, I need to get this url from controller 1. http://localhost/sample/controller_1/view/73
Sample code http://pastebin.com/T7J29qYF