update : 2015.11.03
php.shukuma.com검색:
|
Yaf_Router::getCurrentRoute(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. 예제Example #1 Register some routes in Bootstrap
<?php Example #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" 참고
|