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

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -