Routes help |
[eluser]PHP Creative[/eluser]
Hi I was wondering if anybody could help me. I have the following url. http://www.test.com/store/dvds/34 store = controller name dvd = category name (hundreds of possible categories so would be hard to create an array) 34 = id of product Basically I can route the first URI (category) to a function inside store called categories doing the following $route[store/(:any)'] = "store/categories/$1"; But can’t re-route the product id to a function called product_info. Tired the following: $route[store/(:any)/(:any)'] = "store/product_info/$1"; I would really appreciate any help. Thanks a million |
Messages In This Thread |
Routes help - by El Forum - 12-28-2009, 04:06 AM
Routes help - by El Forum - 12-28-2009, 07:56 AM
|