Welcome Guest, Not a member yet? Register   Sign In
PROBLEM WITH URL_SEGMENTS METHOD
#1

[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.
#2

[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.
#3

[eluser]FX[/eluser]
http://ellislab.com/codeigniter/user-gui.../urls.html

read the Query String part, should be useful (and URI routing documentation also) Wink




Theme © iAndrew 2016 - Forum software by © MyBB