我有一个错误:
http://www.test.com/downloads/
在 Joomla 我调用函数
$savepath = JPATH_SITE.DS.'downloads';
但是当将 $savepath 放在标签上时,链接 url 变为:
<a href="<?php echo savepath?>">test</a>
=> firebug is url is test.com/home/test/public_html/downloads/
How to fix this error to result 是:
test.com/downloads
或者
/home/test/public_html/downloads/