-- SiCo007 <[EMAIL PROTECTED]> wrote
(on Thursday, 08 November 2007, 05:14 AM -0800):
>
> I'm using the url helper to produce urls for my sites navigation. All works
> well except when I pass additional parameters to a url. All the following
> urls on that page then contain those additional parameters. How do I stop
> this? Do I need to create my own url helper?
>
> Route Path: http://zframe/admin/cache/
> Parameter Path: http://zframe/admin/cache/delete/id/acl/
>
> All new urls: http://zframe/admin/cache/index/id/acl/
>
> Any help or advice would be great, sending reset semi works but makes all
> the urls contain index for the controller, I'd rather have plain urls:
>
> With Controller: http://zframe/admin/cache/index/
The third argument to the url helper is a 'reset' flag. Pass in a true
value on each call, and you should be okay:
<?= $this->url($params, $routeName, true) ?>
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/