I am developing an ecommerce website with CI that has product categories and products. I want to route the URL so that it will go to the products controller, then run the ge
CodeIgniter routes don't work well with regex. They are supported, not I can never get them to work. It would be much easier to catch them like this
$route['products/(:any)'] = "products/getCategoryByName/$1"; $route['products/(:any)/(:any)'] = "products/$1/getProductByName/$2";