From 95d06605c68f9b2073b0a01e7fa81aad4aa0e755 Mon Sep 17 00:00:00 2001
From: Derek Allard
Note: Routes will run in the order they are defined. Higher routes will always take precedence over lower ones.
-Here are a few routing examples:
@@ -119,10 +118,12 @@ Higher routes will always take precedence over lower ones.$route['blog/joe'] = "blogs/users/34";
A URL containing the segments blog/joe will be remapped to the "blogs" class and the "users" method. The ID will be set to "34".
-$route['product/:any'] = "catalog/product_lookup";
A URL with "product" as the first segment, and anything in the second will be remapped to the "catalog" class and the "product_lookup" method.
+$route['product/(:num)'] = "catalog/product_lookup_by_id/$1";
+A URL with "product" as the first segment, and anything in the second will be remapped to the "catalog" class and the "product_lookup_by_id" method passing in the match as a variable to the function.
+Important: Do not use leading/trailing slashes.