2010-12-20 54 views
0

我忙於製作Joomla!零件。並知道我想鏈接到另一個組件。所以,例如我想從我的組件'my_component'鏈接到'his_component'。通常這很容易做到。只需建立一個正常的鏈接,如href =「?option = com_his_component」。但問題是,我的一個消費者使用SEO友好的URL。在這種情況下,這個URL將不起作用。如何使用Joomla課程製作正確的Joomla網址

有誰知道一種方法的正確方法(我覺得跟阿比的Joomla!)

回答

3

只是包裝與呼叫鏈接到JRoute::_($url)

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

謝謝。而已 – Tom 2010-12-20 19:18:16