CodeIgniter Forums
_remap with more arguments? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: _remap with more arguments? (/showthread.php?tid=6518)



_remap with more arguments? - El Forum - 03-02-2008

[eluser]Unknown[/eluser]
Hi,

what if i had URI like
Code:
http://host/controller/sth/sth2/sth3/sth4
where can i get all the uri segments (not to use $_SERVER['REQUEST_URI'])...

i thougt i'll get it from controller::_remap() like arguments, but _remap gets only one argument (in my case 'sth') but where do i get sth2, 3 and 4?

I think it is easy case, but i couldnt find answer... thanks


_remap with more arguments? - El Forum - 03-02-2008

[eluser]Derek Allard[/eluser]
Take a look at $this->uri->segment. Welcome to CI!