【发布时间】:2017-04-21 13:06:14
【问题描述】:
我现在正在分析和工作 cs 购物车。我不知道如何在 cs 购物车(php 和 tpl 文件)中获取基本 url??请帮助我。我的 cs 购物车版本 4.5.2。
many time my self searched google.But i don't have the results.
【问题讨论】:
标签: cs-cart
我现在正在分析和工作 cs 购物车。我不知道如何在 cs 购物车(php 和 tpl 文件)中获取基本 url??请帮助我。我的 cs 购物车版本 4.5.2。
many time my self searched google.But i don't have the results.
【问题讨论】:
标签: cs-cart
php 中的基本网址:
fn_url('');
tpl 中的基本网址:
{''|fn_url}
【讨论】:
基本 URL 是您的实际域:http://example.com/ 没有控制器。
如果你想同时获取当前 URL 和你正在处理的页面的控制器,你应该使用这个:
{$config.current_url|fn_url}
【讨论】: