PHP » GoLang |
login |
register |
about
|
GoLang Yaf_Router::addRoute
request it (432)
GoLang replacement for PHP's Yaf_Router::addRoute
[edit | history]
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
ParametersThis function has no parameters. Return Values
ExamplesExample #1 Yaf_Dispatcher::autoRender()example
<?php See Also
|
more
Recently updated
more
Most requested
more
Last requests
|