I'm trying to paginate the search results returned by the query. I have the following URL:
blog/search?query=post/5
Where I am trying to get the value of $start=5
from the URL using:
$start = $this->uri->segment(3);
It is not returning anything.
Where removing ?query=post
, i.e, blog/search/5
works fine. But I want to keep the query parameter and read the value.