我的引导程序中有以下代码。但是,它运行良好,除了默认的任何模块,它都会重定向到默认模块。我怎样才能让它与默认模块以外的模块一起工作?
protected function _initRoutes()
{
$this->bootstrap(array('FrontController'));
$router = $this->getResource('Frontcontroller')->getRouter();
$router->removeDefaultRoutes();
$language = new Zend_Controller_Router_Route(
':language', array('language' =>'en')
);
$module = new Zend_Controller_Router_Route_Module(
array(
'module' => 'default',
'controller'=> 'index',
'action' => 'index'
),
Zend_Controller_Front::getInstance()->getDispatcher(),
Zend_Controller_Front::getInstance()->getRequest()
);
$module->isAbstract(true);
$default = new Zend_Controller_Router_Route_Chain();
$default->chain($language);
$default->chain($module);
$router->addRoute('default', $default);
}