Ok, segments in Codeigniter are the content between slashs like mysite.com/page/page-name. To get the page-name value I get the second segment, or $this->uri->segment(1)
. To get the strings passed by query string ($_GET), you can simply use the $_GET['local_branch']
as in your example or in case of Codeigniter, as the @Tom answer: $this->input->get('local_branch')
.
In this case, you can to explode the values delimiting by /.
$localBranch = $_GET['local_branch'];
// Or
$localBranch = $this->input->get('local_branch');
// And split using the / as delimiter if is need.
$localBranch = explode('/', $localBranch);
// Output
// Array(0 => 1, 1 => 10)
This way many values can be passed in same query string.