Parameters or hidden parameters

For programming and general questions on Zend Framework

Parameters or hidden parameters

Postby msali on Fri Nov 16, 2012 6:27 am

i am beginner in zend and mvc, so apologize me if i ask any stupid question.

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.
msali
 
Posts: 2
Joined: Fri Nov 16, 2012 6:14 am

Re: Parameters or hidden parameters

Postby msali on Sun Nov 18, 2012 2:30 pm

Help!!??
msali
 
Posts: 2
Joined: Fri Nov 16, 2012 6:14 am

Re: Parameters or hidden parameters

Postby kentatzend on Mon Nov 19, 2012 8:08 pm

you posted in the wrong forum for a zend framework question .... and to make matters worse you posted in an end-of-life product forums so ... I moved it for you.
User avatar
kentatzend
 
Posts: 1778
Joined: Thu Dec 11, 2008 1:08 pm


Return to Zend Framework

Who is online

Users browsing this forum: No registered users and 10 guests