to specify my question a little more. What I want is to keep all url
parts which a explicit defined in my route and clear all parts which are
not explicit defined in my route. Again here is my route:
$frontController->getRouter()->addRoute('default',
new Zend_Controller_Router_Route(
':mandator/:lang/:controller/:action/*',
array(
'mandator' => 'site',
'lang' => 'de',
'module' => 'default',
'controller' => 'index',
'action' => 'index',
))
);
So, if 'mandator', 'lang', 'module', 'controller' and 'action' have a
current value this should be kept or overwritten by the first parameter
in my call of $this->getHelper('url')->url(). All other params like
'id', 'page' or 'whatever' which are not defined in my route should be
removed from the url.
How can I archieve this?
Thanks!
Ralf
没有评论:
发表评论