say I have a url like such

http://domain.com/controller/action/key1/param1/key2

and the following code

$ctrl = Zend_Controller_Front::getInstance(); 
     
//Create a router and request object 
$router   = $ctrl->getRouter(); 
$request  =
$ctrl->setRequest('Zend_Controller_Request_Apache404')->getRequest(); 
$router->route($request); 

var_dump($request->getParams())  


this would result in zf1.5

array(5) {
  ["controller"]=>
  string(3) "controller"
  ["action"]=>
  string(3) "action"
  ["key1"]=>
  string(3) "param1"
  ["key2"]=>
  string(0) ""
  ["module"]=>
  string(7) "default"
}
whereas zf1.6.2 produces this


array(5) {
  ["controller"]=>
  string(3) "controller"
  ["action"]=>
  string(3) "action"
  ["key1"]=>
  string(3) "param1"
  ["module"]=>
  string(7) "default"
}

basically ignoring the empty param. Is there a way to revert to 1.5 method
of handling empty key's? I would like to upgrade to 1.6 but I can't as this
method will break significant portions of our software.

cheers
Jude A.
-- 
View this message in context: 
http://www.nabble.com/Changes-to-routing-from-1.5-to-1.6.-keys-with-no-params-no-longer-showing-tp19967711p19967711.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to