2010年4月21日星期三

[fw-mvc] trailing slashes

In my current ZF (svn):

"/news" - match news controller, index action
"/news/" - does not

And route:
$route = new Zend_Controller_Router_Route(
'news/:name/',
array(
'controller' => 'news',
'action' => 'showOne'
)
);

Match "/news/opening2010",
but not the "/news/opening2010/"

It is expected behavior?
How to override it? As for me, presence or absence of trailing slash should
make no difference.

Thanks in advance, any comments appreciated.
--
View this message in context: http://n4.nabble.com/trailing-slashes-tp2018854p2018854.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: