如何在joomla3.1组件中生成sef url?我的路线在这里。
my_component/view/categories/category/catID/itemID发布于 2013-10-28 16:22:55
要做到这一点,您可以使用如下内容:
echo JRoute::_('index.php?option=com_mycomponent&view=categories&catid=20&Itemid=50');Joomla将使用JRoute()类自动将其转换为SEF。
有关使用组件支持SEF URL的更多信息,请阅读以下内容:
component
希望这能有所帮助
https://stackoverflow.com/questions/19615685
复制相似问题