<?php
class IndexController extends Yaf_Controller_Abstract
{
public function indexAction()
{
$request = $this->getRequest();
// Assuming the request was sent with GET /index
var_dump($request->isGet(), $request->isPost());
}
}
?>
The above example will output
something similar to: