<?php
class IndexController extends Yaf_Controller_Abstract
{
public function indexAction()
{
$request = Yaf_Dispatcher::getInstance()->getRequest();
// The dispatcher holds the very same request object that is
// passed to the controller
var_dump($request === $this->getRequest());
return false;
}
}
?>
The above example will output
something similar to: