Welcome Guest, Not a member yet? Register   Sign In
Routing using lang file
#7

[eluser]pickupman[/eluser]
Quote:i’m trying using this in route.php:

$route[‘products/category’] = “asd/asd”;

but it doesn’t works for me Sad
Should be:
Code:
$route['products/category/(:num)'] = 'asd/asd/$1'; //this would be invalid to have a controller and method with same name
//or
$route['asd/asd/(:num)'] = 'products/category/$1'; //calls products controller - category method and passes integer as first parameter


Messages In This Thread
Routing using lang file - by El Forum - 12-24-2010, 11:07 AM
Routing using lang file - by El Forum - 12-24-2010, 11:51 AM
Routing using lang file - by El Forum - 12-24-2010, 12:09 PM
Routing using lang file - by El Forum - 12-24-2010, 12:16 PM
Routing using lang file - by El Forum - 12-24-2010, 12:38 PM
Routing using lang file - by El Forum - 12-24-2010, 12:47 PM
Routing using lang file - by El Forum - 12-24-2010, 12:51 PM
Routing using lang file - by El Forum - 12-24-2010, 12:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB