<?php
class IndexController extends Yaf_Controller_Abstract
{
public function indexAction()
{
$request = $this->getRequest();
// Assuming the application is served under /myapp,
// and the request is /myapp/product/view
var_dump($request->getBaseUri());
var_dump($request->getRequestUri());
}
}
?>
The above example will output
something similar to:
string(6) "/myapp"
string(19) "/myapp/product/view"