i am currently working on a project using zend mvc. i have a product detail page. below is my route config of product detail page
Code: Select all
resources.router.routes.product-display.route =/detail/:productname resources.router.routes.product-display.defaults.module = default resources.router.routes.product-display.defaults.controller =product resources.router.routes.product-display.defaults.action = display
here you can clearly see that i have productname parameter, this is because i want the product name to display in url. but in my database i have primary key on productid.
Is there any option that i keep displaying productname in url but on back end i have productid to use in where clause of select statement.