|
|||
|
I can get my site to work as follows
http://www.site.com/products/view/name/<productName> But would like it to be http://www.site.com/products/<productName> Is there a default param name I can grab from within the product controller's index action? What's a good way of grabbing the product name and having my way with it? |
|
|||
|
If you don't want to modify the controller (i don't recommend messing with it right off the bat),The URL must follow this pattern:
yoursitehere.com/controller/action/key1/value1/key2/value2/ It sounds like this doesn't suit you though so you should read up on Zend_Controller_Router_Rewrite Last edited by notrub225 : 02-18-2008 at 10:55 PM. |
|
|||
|
Thanks,
I read up on the router and it seems to work great. For those who wish to know how I did it, in my public index I added: PHP Code:
http://site.com/Products/view/productName/<productName> you can get the same result with http://site.com/Products/<productName> |
![]() |
| Thread Tools | |
| Display Modes | |
|
|