寂寂无闻

夜露黏寒,层云弄影,烛映帘栊月半弯

龙城男人
龙城男人
2023年前

迅睿获取URI地址

1、网站首页的URI

{if PhpcmfService::L('Router')->uri() == "home/index"}
    当前控制器是首页的
{/if}

2、news模块首页的uri

{if PhpcmfService::L('Router')->uri() == "news/home/index"}
    当前控制器是news模块首页的
{/if}

3、news模块栏目的uri

{if PhpcmfService::L('Router')->uri() == "news/category/index"}
    当前控制器是news模块栏目页的
{/if}

4、news模块内容的uri

{if PhpcmfService::L('Router')->uri() == "news/show/index"}
    当前控制器是news模块内容目页的
{/if}

5、news模块搜索的uri

{if PhpcmfService::L('Router')->uri() == "news/search/index"}
    当前控制器是news模快搜索页的
{/if}

6、会员中心首页的uri

{if PhpcmfService::L('Router')->uri() == "member/home/index"}
    当前控制器是会员中心首页
{/if}

7、会员中心的news模块列表的uri

{if PhpcmfService::L('Router')->uri() == "member/news/home/index"}
    当前控制器是会员中心news模块列表
{/if}
/tag/Array" class="whitespace-nowrap hover:underline flex items-center text-xs mr-1">
错误[2]: Array to string conversion, 文件: /www/wwwroot/jjww.cc/tpl/pyq/compile/page.php, 行: 49

文件: /www/wwwroot/jjww.cc/index.php, 行: 1052, include(/www/wwwroot/jjww.cc/tpl/pyq/compile/page.php)

Array
评论区