我的目标是为这种情况创建通用路线:
http://test.com/pages/cat_name/about
http://test.com/pages/?????/about
http://test.com/pages/about
....我在引导程序中写道:
$router->addRoute("pages",new Zend_Controller_Router_Route_Regex(
'pages/(\w+)/:stitle',
array( 'controller' => 'pages',
'action' => 'index',
'module' => 'pages')));
但它仍然不起作用。怎么了?