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
Php 如何使用Joomla类创建正确的Joomla URL_Php_Url_Joomla_Joomla1.5 - Fatal编程技术网

Php 如何使用Joomla类创建正确的Joomla URL

Php 如何使用Joomla类创建正确的Joomla URL,php,url,joomla,joomla1.5,Php,Url,Joomla,Joomla1.5,我正忙着做巧克力呢!组成部分。我想链接到另一个组件。因此,作为示例,我想将我的组件“my_component”链接到“his_component”。通常这很简单。只需创建一个普通链接,如href=“?option=com\u-his\u-component”。但问题是我的一个消费者使用SEO友好的URL。在这种情况下,这个URL将无法工作 是否有人知道正确的方法(我认为使用Joomla!Api)只需通过调用以下链接: 只需将该链接包装为调用: $link = JRoute::_('index.p

我正忙着做巧克力呢!组成部分。我想链接到另一个组件。因此,作为示例,我想将我的组件“my_component”链接到“his_component”。通常这很简单。只需创建一个普通链接,如href=“?option=com\u-his\u-component”。但问题是我的一个消费者使用SEO友好的URL。在这种情况下,这个URL将无法工作


是否有人知道正确的方法(我认为使用Joomla!Api)

只需通过调用以下链接:


只需将该链接包装为调用:

$link = JRoute::_('index.php?option=com_his_component&foo=bar');