(Yaf >=1.0.0)
Yaf_Route_Static::match — Whether the route matches a URI
Determine whether the static route matches a URI. Since the static route matches any URI, this method always returns true.
uriThe URI to check.
Always returns true.
Örnek 1 Yaf_Route_Static::match() example
<?php
$route = new Yaf_Route_Static();
/* the static route matches any URI */
var_dump($route->match("/product/detail/id/10"));
var_dump($route->match("/"));
?>Yukarıdaki örnek şuna benzer bir çıktı üretir:
bool(true) bool(true)