PHP » GoLang |
login |
register |
about
|
GoLang Yaf_Router::getCurrentRoute
request it (496)
GoLang replacement for PHP's Yaf_Router::getCurrentRoute
[edit | history]
PHP Yaf_Router::getCurrentRoutePHP original manual for Yaf_Router::getCurrentRoute [ show | php.net ]Yaf_Router::getCurrentRoute(Yaf >=1.0.0) Yaf_Router::getCurrentRoute — Get the effective route name Description
public string Yaf_Router::getCurrentRoute
( void
)
Get the name of the route which is effective in the route process.
ParametersThis function has no parameters. Return ValuesString, the name of the effective route. ExamplesExample #1 Register some routes in Bootstrap
<?php Example #2 plugin Dummy.php (under application.directory/plugins)
<?php The above example will output something similar to: /* 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" See Also
|
more
Recently updated
more
Most requested
more
Last requests
|