PROBLEM WITH URL_SEGMENTS METHOD |
[eluser]Paganotti[/eluser]
HOW IS POSSIBILE DO something LIKE this: http://localhost/test.php?variable=10 how does it become with segment_url version? help me, thanks.
[eluser]deviant[/eluser]
A URI structure something like this: http://localhost/index.php/test/10/ Where the controller would be called Test. To retrieve the variable value you could use: Code: $variable = $this->uri->segment(2); Probably the simplest way.
[eluser]FX[/eluser]
http://ellislab.com/codeigniter/user-gui.../urls.html read the Query String part, should be useful (and URI routing documentation also) |
Welcome Guest, Not a member yet? Register Sign In |