routes clarification |
[eluser]FuzzyJared[/eluser]
I have question regaurding routes. In my case, I want to do something like the following but it doesn't work the way I would like it to. $route['products/:any'] = "products/categories"; $route['products/:any/:any'] = "products/product_listing"; What I am trying to do is get a different controller to handle the product listing if it is listed. http://codeigniter/products/adult-bird-food would just be handled by the categories function http://codeigniter/products/adult-bird-food/grape would be handled by the product_listing function Any suggestions would be helpfull
[eluser]FuzzyJared[/eluser]
I love it when it is the simple things. I guess I forgot about the hierarchy of routing is different than the hierarchy of most things, css for example. Thanks that did the trick. |
Welcome Guest, Not a member yet? Register Sign In |