Zend framework 如何在Zend\u控制器\u路由器\u路由中使用破折号作为分隔符
目前我的一条路线是这样的Zend framework 如何在Zend\u控制器\u路由器\u路由中使用破折号作为分隔符,zend-framework,routing,url-routing,zend-controller-router,Zend Framework,Routing,Url Routing,Zend Controller Router,目前我的一条路线是这样的 new Zend_Controller_Router_Route( 'aviso/:url_id/:slug', array( 'module' => 'postulante', 'controller' => 'aviso', 'action' => 'ver', 'url_id' => ':url_id', 'slug'=> ':slug' ) ) 现在,我想更改url部分并使用'a
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\u id'而不是'aviso/:url\u id/:slug',我该如何实现这一点。您将要使用。如果你通读这些文档,你将有足够的信息来构建你想要的路线。他们提供的最后一个例子非常接近您的需要。您能更好地解释一下您想用一个例子做什么吗?