News Feed
Sections




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

Zend Developer Zone:
Request parameter mapping to action method parameters
October 05, 2009 @ 08:04:54

The Zend Developer Zone has a quick post from albeva about an extension from the default controller in the Zend Framework to map URL parameters directly to the methods.

This not only makes parameter passing intuitive (rather than calling $this->_request->getParam() ) but also automatically uses the default value if provided and if typehinting is provided either via phpdoc comment or before the parameter (array or classname) it will do the required instantiation or type casting.

The post includes a snippet of sample code, but you can learn more about the script here.

0 comments voice your opinion now!
request parameter zendframework map


blog comments powered by Disqus

Similar Posts

Juozas Kaziukenas' Blog: SQL Native Client as MSSQL driver for Zend Framework

phpRiot.com: Zend Framework 101: Zend_Cache

ProDevTips.com: Writing a CMS/Community with Smarty and the Zend Framework: Part 6

Enrico Zimuel's Blog: XML to JSON in PHP: an odyssey

Zend Developer Zone: Using Zend_Feed to Merge Multiple RSS Feeds


Community Events





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


list developer podcast series api language configure community install laravel library release unittest threedevsandamaybe wordpress symfony introduction application code interview

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