ZF-3506: Passing array paramters to rewrite router

Issue Type: Improvement Created: 2008-06-24T16:55:48.000+0000 Last Updated: 2008-11-13T14:10:02.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Eran Galperin (erangalp) Assignee: Ben Scholzen (dasprid) Tags: - Zend_Controller

Related issues: Attachments:


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:

<pre class="highlight">
$params[$key] = $val;


<pre class="highlight">
$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: […]


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.