2009年5月7日星期四

[fw-mvc] Module Router - index?

Is there a way to remove the 'index' controller from this URL:

http://site.com/module/index/action/

I'd like this:

http://site.com/module/action/

To call the index controller for that module.

I took a quick peek in the Zend_Controller_Router_Route_Module and there is
some module sniffing code:

if ($this->_dispatcher && $this->_dispatcher->isValidModule($path[0])) {

but there is no equivalent code for the controller name...

Thanks,

monk.e.boy
--
View this message in context: http://www.nabble.com/Module-Router---index--tp23422419p23422419.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: