【发布时间】:2012-09-26 12:23:28
【问题描述】:
我正在尝试使用以下代码创建一个子菜单(在 Joomla! 后端),但它不起作用。
JSubMenuHelper::addEntry(JText::_('test'), 'index.php?option=com_test&controller=test', $controller == 'testcon');
我在此处获取了示例图片。它解释了我想要什么类型的菜单。
sample menu is here. check this picture
谢谢!
【问题讨论】:
-
你不能用菜单管理器创建一个子菜单吗?
-
这是前端而不是后端。请参考附件截图
-
啊,好吧。您将此代码添加到哪个文件?
-
我将它添加到 php.ini 文件中。 test.php(假设组件名是 com_test)
标签: php joomla joomla2.5 joomla1.7 joomla1.6