<?php
$request = new Yaf_Request_Simple("GET", "Index", "Product", "View");
// The application lives under /myapp,
// requests come in as /myapp/product/view
$request->setBaseUri("/myapp");
$request->setRequestUri("/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"