Welcome Guest, Not a member yet? Register   Sign In
URI segments
#1

[eluser]ToretoTech[/eluser]
Hey All!

I'm having trouble understanding how to get the URI segments working.
I don't want use query strings and I don't want to re-enable the use of $_GET.
I want to do it the way Codeigniter meant for us to do it.

I want to be able to pass data in URI segments from my search form to my controller.

EX:
I have a view containing a form with fields id and name. I want to be able to pass these to the search function in my controller.

/controller/search/id/name

My question is how can I append these URI segments when the user clicks on the submit?

Thank you!
#2

[eluser]InsiteFX[/eluser]
CodeIgniter User Guide - Routing

InsiteFX
#3

[eluser]toopay[/eluser]
Use _remap combine with some regex function to catch the SERVER params maybe more elegant (and flexible), rather than set a route for that.




Theme © iAndrew 2016 - Forum software by © MyBB