(Yaf >=1.0.0)
Yaf_Router::__construct — Yaf_Router constructor
This function has no parameters.
Example #1 Yaf_Router::__construct() example
In normal usage the router is not constructed manually, it is owned by the dispatcher:
<?php
/* in index.php or a plugin, obtain the router from the dispatcher */
$router = Yaf_Dispatcher::getInstance()->getRouter();
var_dump($router);
?>The above example will output something similar to:
object(Yaf_Router)#4 (1) {
}