Matthew Weier O'Phinney wrote:

By default, the url helper uses any matched parameters in the current
route. You can disable that by passing a false value for the third
argument:

    $this->url(array('controller'=>'index','action'=>'index'), 'default', false)

(The named route is the second argument; in this case, you're using the
'default' route)

Well, I think you meant 'true', Matthew :)

   $this->url(array('controller'=>'index','action'=>'index'), 'default', true);

This resets all parameters to their default values and is a preferred method. But if you would like keep matched parameters and reset only one, then you have a second option:

   $this->url(array('controller'=>'index','action'=>'index', 'id' => null));


--
Michał Minicki aka Martel Valgoerad | [EMAIL PROTECTED] | 
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Idleness is not doing nothing. Idleness is being free to do anything." --
Floyd Dell

Reply via email to