【发布时间】:2011-12-05 15:35:37
【问题描述】:
目前我的一条路线如下所示
new Zend_Controller_Router_Route(
'aviso/:url_id/:slug',
array(
'module' => 'postulante',
'controller' => 'aviso',
'action' => 'ver',
'url_id' => ':url_id',
'slug'=> ':slug'
)
)
现在,我想更改 url 部分并使用 'aviso/:slug-:url_id' 而不是 'aviso/:url_id/:slug',我该如何实现。
【问题讨论】:
-
你能更好地解释一下你想用一个例子做什么吗?
标签: zend-framework routing url-routing zend-controller-router