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
Posted by Ben Scholzen (dasprid) on 2008-11-05T12:50:34.000+0000
Implemented with r12310
Posted by Wil Sinclair (wil) on 2008-11-13T14:10:02.000+0000
Changing issues in preparation for the 1.7.0 release.