(Yaf >=1.0.0)
Yaf_Route_Static::match — Whether the route matches a URI
$uri
Determine whether the static route matches a URI. Since the static route matches any URI, this method always returns true.
true
uri
The URI to check.
Always returns true.
Example #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("/")); ?>
The above example will output something similar to:
bool(true) bool(true)