Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Joomla:获取文章内的基本url_Joomla_Joomla1.5 - Fatal编程技术网

Joomla:获取文章内的基本url

Joomla:获取文章内的基本url,joomla,joomla1.5,Joomla,Joomla1.5,我想从我的文章里面得到我网站的基本url。有没有办法使用内置的Joomla功能或插件来实现这一点?您可以使用JURI方法获取基本URL,但您需要添加一个扩展,允许您在文章中使用PHP代码 JURI::root() 这将根据Joomla的安装位置返回根URL。您可以使用JURI方法获取基本URL,但需要添加一个扩展,允许您在文章中使用PHP代码 JURI::root() 这将根据Joomla的安装位置返回根URL。如果要使用基本URL进行链接,则可以使用index.php代替基本URL。这将很

我想从我的文章里面得到我网站的基本url。有没有办法使用内置的Joomla功能或插件来实现这一点?

您可以使用JURI方法获取基本URL,但您需要添加一个扩展,允许您在文章中使用PHP代码

JURI::root()

这将根据Joomla的安装位置返回根URL。

您可以使用JURI方法获取基本URL,但需要添加一个扩展,允许您在文章中使用PHP代码

JURI::root()

这将根据Joomla的安装位置返回根URL。

如果要使用基本URL进行链接,则可以使用index.php代替基本URL。这将很好。因为基本URL也指向网站的index.php。

如果要使用基本URL进行链接,则可以使用index.php代替基本URL因为基本url也指向网站的index.php