path - 输出各种路径
path(0) -> `/yskit/`
path(1) -> `/yskit/index.php/`
path() -> `/yskit/index.php/`
path('r') -> `/yskit/index.php?r=`
path('s') -> `/yskit/?r=`
path('ui3nd') -> `/yskit/static/ui3nd`
path('weys') -> `/yskit/static/weys`
path('static') -> `/yskit/static`
$_cbase['webRoot'] -> `/yskit`
Demo: (显示地址已解析,请查看模板源码)
src="/yskit/static/ui3nd/jsLibs/jquery-2.x.js"
href="/yskit/static/weys/weys.css"
/yskit/
/yskit/index.php/demo-path
/yskit/index.php?r=demo-path
/yskit/?r=demo-path
path('mod-key')=/yskit/index.php/mod-key
path('demo.1234')=/yskit/index.php/demo.1234
path('api:demo.1234')=/yskit/api.php/demo.1234
path('nogroup:demo.1234')=/yskit/nogroup.php?r=demo.1234