Welcome Guest, Not a member yet? Register   Sign In
Improve routes rule help
#1

[eluser]chefnelone[/eluser]
Hello

I learnign how to use route[] in the config/routes.php file;

I've done this:

Code:
$route['shop/:any/:num/:num/:num'] = 'shop/detail/$3/$4/$5';
//then: 'shop/pizza/203/0/4' is routed to 'shop/detail/203/0/4'

which works fine.

But I'like to get rid of the last 3 segments (/203/0/4) Problem is that I need to pass those segments to the 'detail' function.

Is there any way to do this (maybe with .htaccess)


Messages In This Thread
Improve routes rule help - by El Forum - 04-20-2010, 06:49 AM
Improve routes rule help - by El Forum - 04-20-2010, 07:27 AM
Improve routes rule help - by El Forum - 04-20-2010, 07:35 AM
Improve routes rule help - by El Forum - 04-20-2010, 07:43 AM
Improve routes rule help - by El Forum - 04-20-2010, 07:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB