开发者

Custum routing while form submit with get mehod- Zend Framework

开发者 https://www.devze.com 2023-03-24 13:31 出处:网络
I am submitting values using zend_from using get method. I want to do custom routing here. Here it shows url :

I am submitting values using zend_from using get method.

I want to do custom routing here.

Here it shows url :

http://www.example.com/news/index?keyword=world&news_category=&dt_from=&dt_to=&search=Search&limit=10

开发者_JS百科

but I want to show :

http://www.example.com/news/index/keyword/world/news_category/architecture/dt_from/null/dt_to/null/search/Search/limit/10

IS it possible ?

Please help me to solve it.


If you already have the route set up to process the second url correctly, you can use some javascript to catch the form submit and change it to a redirect with the params placed correctly.

0

精彩评论

暂无评论...
验证码 换一张
取 消