(Yaf >=1.0.0)
Yaf_Request_Http::__construct — Constructor of Yaf_Request_Http
Bu işlev hala belgelendirilmemiştir; sadece bağımsız değişken listesi mevcuttur.
Bu işlevin bağımsız değişkeni yoktur.
Örnek 1 Yaf_Request_Http::__construct() example
<?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());
?>Yukarıdaki örnek şuna benzer bir çıktı üretir:
string(3) "GET" string(21) "/product/detail/id/10" string(8) "/product"