<?php
class DocumentController extends Yaf_Controller_Abstract
{
public function saveAction()
{
// Assuming the request was sent with PUT /document/save/id/17
if ($this->getRequest()->isPut()) {
$payload = $this->getRequest()->getRaw();
}
var_dump($this->getRequest()->isPut());
}
}
?>
The above example will output
something similar to: