<?php
/**
* Build a http request explicitly with an URI and a base URI.
*
* If the request URI is omitted, it is retrieved from the usual
* $_SERVER variables ($_SERVER["PATH_INFO"], $_SERVER["REQUEST_URI"], ...).
*/
$request = new Yaf_Request_Http("/product/detail/id/10", "/product");
var_dump($request->getMethod());
var_dump($request->getRequestUri());
var_dump($request->getBaseUri());
?>
The above example will output
something similar to:
string(3) "GET"
string(21) "/product/detail/id/10"
string(8) "/product"