I'm working on my ecommerce on kohana 3.2. i need to setup the routing to be able to use links like this:
first:
example.com/categoryname/ - this shows all products of given category. it would be nice to have pagination there like example.com/categoryname/1, example.com/categoryname/2 etc...
second:
example.com/categoryname/productname - this shows the chosen product.
categoryname and productname are alphanumeric of course. the categories list is dynamic, so i cannot make as many controllers as categories. i would like to omit hacks in index.php and major bootstrap changes, to be able to migrate the code easily to ko3.3 and upper (if ever out).
i'm reading about lambda callbacks functions, and maybe this is the solution.
anyway, if this is not possible, perhaps routing for : example.com/shop/categoryname/productname, example.com/shop/categoryname/1 is possible.
thanks for any help. dev1