Yaf_Router::addRoute
Yaf_Router::addRoute
(Yaf >=1.0.0)
Yaf_Router::addRoute — Add 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 TRUE
, the router process will be end. otherwise, the older one will be called.