help with routing

#1
[eluser]Unknown[/eluser]
as would be the routing of this:
producto/detalle/1/hp-pavillion
producto/detalle/4/iphone-blanco
producto/detalle/111/monitor_lcd_sony_18p

it looks like this:
product/hp-pavilion
product/iphone-blanco
product/monitor_lcd_sony_18p

thanks

PD: sorry my English

#2
[eluser]ghprod[/eluser]
you need to add to your routes.php

Code:
$route['producto/detalle/(\d+)/(.*?)'] = 'product/$2';

remember since you dont have ID to route then you need to catch product name and use it as key to get right content item Smile


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.