Yaf_Router::getCurrentRouteGet the effective route name Beschreibung
public string Yaf_Router::getCurrentRoute
( void
)
Get the name of the route which is effective in the route process.
Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteString, the name of the effective route. BeispieleBeispiel #1 Register some routes in Bootstrap
<?phpBeispiel #2 plugin Dummy.php (under application.directory/plugins)
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: /* for http://yourdomain.com/product/list/1 * DummyPlugin will output: */ string(7) "rewrite" /* for http://yourdomain.com/product/info/34 * DummyPlugin will output: */ string(5) "regex" /* for other request URI * DummyPlugin will output: */ string(8) "_default" Siehe auch
|