Welcome Guest, Not a member yet? Register   Sign In
[IT'S OK] Routing get url data
#1

[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()




Theme © iAndrew 2016 - Forum software by © MyBB