Welcome Guest, Not a member yet? Register   Sign In
Move first segment to last segment?
#4

[eluser]xwero[/eluser]
The module segment is a directory?

You don't even have to move the segment to the end of the url, just make it invisible for the router.
Code:
$route['\d+/(.+)'] = '$1';
You still can use the segment using this->uri->segment(1).

You better limit the route as much as possible otherwise it could have unwanted effects.


Messages In This Thread
Move first segment to last segment? - by El Forum - 03-16-2009, 07:39 AM
Move first segment to last segment? - by El Forum - 03-16-2009, 07:44 AM
Move first segment to last segment? - by El Forum - 03-16-2009, 08:40 AM
Move first segment to last segment? - by El Forum - 03-16-2009, 08:43 AM
Move first segment to last segment? - by El Forum - 03-16-2009, 09:09 AM
Move first segment to last segment? - by El Forum - 03-16-2009, 09:21 AM
Move first segment to last segment? - by El Forum - 03-16-2009, 09:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB