Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/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?_Url_Plugins_Joomla_Joomla1.5 - Fatal编程技术网

我怎样才能得到一篇文章';Joomla内容插件中的URL?

我怎样才能得到一篇文章';Joomla内容插件中的URL?,url,plugins,joomla,joomla1.5,Url,Plugins,Joomla,Joomla1.5,我试图写一个插件,需要文章的URL,但我不能在内容插件中得到它。我从JURI::current()中获得了一些信息,但它在frontpage和其他部分和类别中不起作用 我如何在Joomla内容插件中获取文章的URL,以便在Joomla 1.5的标题和内容之间使用它?使用经典的PHP调用?我从来没有写过Joomla插件 $myUrl = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $myUrl=“http://”$\u服务器['

我试图写一个插件,需要文章的URL,但我不能在内容插件中得到它。我从JURI::current()中获得了一些信息,但它在frontpage和其他部分和类别中不起作用


我如何在Joomla内容插件中获取文章的URL,以便在Joomla 1.5的标题和内容之间使用它?

使用经典的PHP调用?我从来没有写过Joomla插件

$myUrl = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $myUrl=“http://”$\u服务器['http\u主机]。$\u服务器['REQUEST\u URI'];