Questions tagged «jroute»

4
如何通过URL获取Itemid并将其传递给JRoute
我在自定义组件中有一个用于特定视图的菜单项。附加到此菜单项的我还有另一个Template Style选择,不是标准模板。通过菜单访问视图效果很好,因为它附加在URL上Itemid。 现在,我想使用JRoute将一个视图与另一个视图链接,但是JRoute无法生成所需的URL。 echo JRoute::_('index.php?option=com_example&view=reporting'); /index.php?option=com_example&view=reporting JRoute 不会将Itemid附加到URL,从而导致菜单项的所选模板样式不起作用。 有没有一种方法可以“计算” Itemid(除了jos_menu在列的表中进行查询之外link)并将其附加到JRoute?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.