In the Zend framework, I am using the $this->url()
method and it's working like a charm. I have one problem though: the method seems to copy the current request parameters over to the new URL. I want it to stop doing this.
An example: I use $this->url('controller' => 'blog', 'action' => 'list');
. If the current page is www.foo.bar/item/view/id/1
with id
being a parameter, the URL will become:
www.foo.bar/blog/list/id/1
You can see the /id/1
part is retained without me specifying it.
How can I make it stop doing this? Thanks in advance.