Yaf_Router::getCurrentRoute(PECL yaf >=1.0.0) Yaf_Router::getCurrentRoute — Get the effective route name Описание
   public string Yaf_Router::getCurrentRoute
    ( void
   ) 
  Get the name of the route which is effective in the route process. 
 Внимание 
 К настоящему времени эта функция еще не была документирована; для ознакомления доступен только список аргументов. Список параметровУ этой функции нет параметров. Возвращаемые значенияString, the name of the effective route. ПримерыПример #1 Register some routes in Bootstrap 
<?phpПример #2 plugin Dummy.php (under application.directory/plugins) 
<?phpРезультатом выполнения данного примера будет что-то подобное: /* 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" Смотрите также
  | 
||