News Feed
Sections




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

Lorna Mitchell's Blog:
Adding PUT variables to Request Object in Zend Framework
August 17, 2009 @ 09:48:05

Lorna Mitchell has added a new post to her blog about adding in PUT variables to your Zend Framework Zend_Request object (useful for web services).

Its very simple: I have extended Zend_Controller_Action with my own, and all controllers inherit from here. This has a routeAction() which grabs the incoming variables from a PUT request and sets them as parameters within the usual $this->getRequest() scope, then forwards on the request.

Her example adds a call to the isPut method to check for the PUT request type and, if found, takes in the request values and pushes them back into the action's parameter values. Then the controller can make a call back to the request object to pull in the parameters when needed.

0 comments voice your opinion now!
put zendframework request object


blog comments powered by Disqus

Similar Posts

PHP-GTK Community Site: Accessing geo-nick with Zend Framework (Zend_XmlRpc_Client)

DevShed: Enforcing Object Types in PHP - Filtering Input Objects in PHP 4

International PHP Magazine: Poll: In Which of the following Symfony takes over Zend Framework?

Zend Developer Zone: Zend Framework application's PHPUnit suite 3x faster

John Coggeshall's Blog: Zend_Service_SlideShare approved


Community Events





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


composer library opinion artisanfiles symfony conference interview framework version language voicesoftheelephpant tool laravel release podcast security community series list introduction

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