CodeIgniter Forums
[IT'S OK] Routing get url data - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: [IT'S OK] Routing get url data (/showthread.php?tid=33579)



[IT'S OK] Routing get url data - El Forum - 08-31-2010

[eluser]Maxim7[/eluser]
Hello Smile

Well I was wodering how to get some data from the Route file:

For example in my route.php file i have this:

Code:
$route['talent/man/(:any)'] = "skills/$1";

When I use this
Code:
$this->uri->segment(2, 0)

I get man, and I would like to get $1 so I would like to get data from this part
Code:
"skills/$1"
and not from the route.
(I know that I can just set to get the costume data
Code:
$this->uri->segment(3, 0)
but I don't want this way.

Thanks Smile

EDIT: found the solution it's
Code:
$this->uri->rsegment()