News Feed
Jobs Feed
Sections




News Archive
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

Zend Developer Zone: Who Uses the Zend Framework?

Matthew Weier O'Phinney's Blog: Introducing the ZF2 Plugin Broker

Matthew Weier O'Phinney's Blog: Proper Layer files when using Dojo with Zend Framework

Roshan Bhattarai's Blog: Which is the best PHP framework ?

Padraic Brady's Blog: An Example Zend Framework Blog App - Part 3: A Simple Hello World Tutorial


Community Events











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


interview framework zendframework2 podcast code development community example testing tool composer series language functional opinion object database release introduction conference

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