Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB