Yaf_Router::addRouteAdd new Route into Router Description
public bool Yaf_Router::addRoute
( string
$name
, Yaf_Route_Abstract $route
)defaultly, Yaf_Router using a Yaf_Route_Static as its defualt route. you can add new routes into router's route stack by calling this method.
the newer route will be called before the older(route stack), and if the newer router return
ParametersThis function has no parameters. Return Values
ExamplesExample #1 Yaf_Dispatcher::autoRenderexample
<?php See Also
|