1
How do I search with pagination using query string in Codeigniter? I’m trying to search in the documentation but couldn’t find it! I have following scenario:
http://localhost/meusite/procurar/s?search_state=RJ&search_city=Rio+de+Janeiro
If it was on a page without search it would be easy, just indicate the main page that will be displayed the listing, but as a search system as I do for when clicking on the next page keep the search criteria in get?
Although it is in English, it is an interesting example that can help you: https://stackoverflow.com/questions/40542031/how-to-make-pagination-query-string-in-codeigniter
– Ricardo Pontual
@Ricardopunctual has no problem being in another language, but there is only one query string, in my case there are two, not to mention that later will come the pagination! The bigger problem is that Uri->segment only identifies up to’S' and completely ignores the rest, so I can’t pass all the link to the $config['base_url array']
– ThiMoreira
Thanks @Ricardopunctual for the willingness to help, I edited the post the way I could solve, I don’t know if it was the best way, but solved for me, thanks again!
– ThiMoreira
@Thimoreira, you can answer your own question :). Put the solution as an answer and approve it. Then you can remove the "ANSWERED" from the title of your question and preferably remove the solution from your question. This way it is more organized. Get it? And welcome to Sopt!
– Dherik
Sorry @Dherik for making the edit wrong, I’m new here and I haven’t adapted yet! Thanks for the advice!
– ThiMoreira
@Thimoreira, that this, just arrived, normal make some mistakes :). Sopt thanks the edition! rs. By the way, you can accept your answer by clicking on the Checkmark button
– Dherik