User Guide: Routing |
[eluser]Unknown[/eluser]
User Guide: Routing Hmm. It seems that the examples here don't really illustrate how to use the :any/:num wildcard properly. For example: Code: $route['product/:any'] = "catalog/product_lookup"; Code: $route['product/(:any)'] = "catalog/product_lookup/$1"; An extra note about bracketing :any and :num like regexps, as well as the $1/$2 convention would help. I was stuck on this for a while until searching the forum for help. Maybe someone could propose updating the guide to reflect this? |
Messages In This Thread |
User Guide: Routing - by El Forum - 02-21-2008, 05:00 AM
User Guide: Routing - by El Forum - 02-21-2008, 05:52 AM
User Guide: Routing - by El Forum - 02-21-2008, 06:14 AM
|