Yaf_Router::addRouteAdd new Route into Router Beschreibung
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
Parameter-ListeDiese Funktion hat keine Parameter. Rückgabewerte
BeispieleBeispiel #1 Yaf_Dispatcher::autoRenderexample
<?phpSiehe auch
|