#1057: Regression: if extra parameters are changed by
AgaviRoutingCallback::onGenerate() the change doesn't have any effect
---------------------+------------------------------------------------------
 Reporter:  dominik  |       Owner:  dominik         
     Type:  defect   |      Status:  new             
 Priority:  highest  |   Milestone:  1.0.1           
Component:  routing  |     Version:  1.0.0           
 Severity:  major    |    Keywords:  routing callback
Has_patch:  0        |  
---------------------+------------------------------------------------------
Description changed by dominik:

Old description:

> <?php
>
> class GenSetExtraParamRoutingCallback extends AgaviRoutingCallback
> {
>   public function onGenerate(array $defaultParameters, array
> &$userParameters, array &$userOptions)
>   {
>     $userParameters['id'] = 12345;
>     return true;
>   }
> }
>
> $ro->gen('foo', array('id' => 10));
> # results in foo?id=10 instead of foo?id=12345
>
> ?>

New description:

 {{{
 #!php
 <?php

 class GenSetExtraParamRoutingCallback extends AgaviRoutingCallback
 {
   public function onGenerate(array $defaultParameters, array
 &$userParameters, array &$userOptions)
   {
     $userParameters['id'] = 12345;
     return true;
   }
 }

 $ro->gen('foo', array('id' => 10));

 ?>
 }}}

 results in ''foo?id=10'' instead of ''foo?id=12345''

--

-- 
Ticket URL: <http://trac.agavi.org/ticket/1057#comment:1>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to