php - Issues accessing GET variables in CodeIgniter -


is there way retrieve parameters in url inside html page use $_get in codeigniter?

for instance, if in view , had url: http://www.mysite.com/controller/function/var1/var2

then how able access var1 , var2 were?

like this:

$var1 = $this->uri->segment(3); $var2 = $this->uri->segment(4); 

read more here.


Comments

Popular posts from this blog

Glib GIOChannel -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -

python - Obscure curses error message when creating a sub window -