<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 19 Jun 2013 17:14:28 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Eran Galperin's Blog: Passing arrays to Zend_Controller_Router]]></title>
      <guid>http://www.phpdeveloper.org/news/10518</guid>
      <link>http://www.phpdeveloper.org/news/10518</link>
      <description><![CDATA[<p>
<i>Eran Galperin</i> has posted <a href="http://www.techfounder.net/2008/06/23/passing-arrays-to-zend_controller_router/">a few hacks</a> you can use for the Zend Framework's Router system to make passing arrays easy and integrated.
</p>
<blockquote>
A big advantage to using the front controller in the Zend Framework is the ability to create nicely formatted urls. [...] The implementation of the default router in the Zend Framework (<a href="http://framework.zend.com/manual/en/zend.controller.router.html">Zend_Controller_Router_Rewrite</a>) does not allow for passing arrays in this manner though, since previously set keys get overwritten if they are declared more than once. This is somewhere between semi-annoying to very annoying, so lets get straight to hacking it into submission. 
</blockquote>
<p>
His <a href="http://www.techfounder.net/2008/06/23/passing-arrays-to-zend_controller_router/">patch</a> only changes one line in the Zend_Controller_Router_Route_Module component - changing it from assigning to a conditional checking for the existence of an array and setting it appropriately.
</p>]]></description>
      <pubDate>Tue, 01 Jul 2008 09:31:52 -0500</pubDate>
    </item>
  </channel>
</rss>
