ZF-3506: Passing array paramters to rewrite router

Description

Current implementation of the rewrite router does not allow passing array parameters in the /{key}/{value} structure. This prevents creating nicely structured URL's from dynamic data.

Passing arrays can be easily implemented by changing line 174 in Zend_Controller_Router_Route_Module, from:


$params[$key] = $val;

To:


$params[$key] = (isset($params[$key]) ? (array_merge((array) $params[$key],array($val))): $val);

Which would create an array when the same parameter key is declared multiple times. I wrote a short article about this issue and explained in greater detail on: [http://techfounder.net/2008/06/…]

Comments

Implemented with r12310

Changing issues in preparation for the 1.7.0 release.