使用Zend_Navigation,我注意到它将'/ public /'添加到所有链接。ZF1从url中删除'public /'
如何删除此添加表单url?
$navigation = array(
array(
'label' => 'Home',
'title' => 'Go Home',
'module' => 'default',
'controller' => 'index',
'action' => 'index',
'route' => 'default',
'order' => -100 // make sure home is the first page
),
array(
'label' => 'Test static page!',
'route' => 'pages',
'params' => array(
'permalink' => 'test'
)
)
);
$nav = new Zend_Navigation($navigation);
htaccess does not help( – ovnia