News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Eran Galperin's Blog:
Passing arrays to Zend_Controller_Router
July 01, 2008 @ 09:31:52

Eran Galperin has posted a few hacks you can use for the Zend Framework's Router system to make passing arrays easy and integrated.

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 (Zend_Controller_Router_Rewrite) 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.

His patch 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.

0 comments voice your opinion now!
array zendframework zendcontrollerrouter router patch


blog comments powered by Disqus

Similar Posts

PHPClasses.org: File upload progress meter for PHP 4, at last!

Jason Houle's Blog: Zend Framework: The Dijit Editor

Padraic Brady's Blog: Zend Framework: Surviving The Deep End Report!

Daniel Cousineau's Blog: Quickie: Module-specific Error Controllers in Zend Framework (1.5)

Federico Cargnelutti's Blog: An Alternative to Zend_Controller: The Router


Community Events











Don't see your event here?
Let us know!


framework composer facebook hhvm opinion language code security package symfony2 podcast overview release component hack threedevsandamaybe unittest introduction install application

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework