2008年8月11日星期一

Re: [fw-mvc] Url helpers

Hello Ralf,

By defined, you mean defined in the current URL?

Best,

Andries

Ralf Eggert schreef:
> Hi again,
>
> 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
>
>
>
>

没有评论: