Magento 管理扩展无法显示在实时服务器菜单栏中
我最近构建了我的第一个 Magento 扩展。
它涉及在管理区域添加一个新的菜单项,并且在我的开发服务器上完美运行。
然而,在实时服务器上,菜单栏项目无法显示。
我非常确定所有文件都已复制并且我已刷新所有缓存。
我已经检查过系统>配置>>高级区域和模块列在禁用部分。
我还需要检查其他设置/配置吗?
I have recently built my first Magento extenstion.
It involves adding a new menu item in the admin area and works perfectly on my development server.
On the live server however, the menu bar item fails to display.
I am pretty sure that all the files have been copied over and I have refreshed all of the cache.
I have checked the system > configuration > advanced area and the module is listed in the disable section.
Are there any other settings/configurations I need to check?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否使用 ACL 角色设置了菜单?如果是,您的用户是否具有正确的角色?
假设上述情况成立,则
Mage_Adminhtml_Block_Page_Menu
类负责呈现菜单。我首先添加一些临时调试代码来确定此类跳过菜单的原因。 (它是跳过它,还是不知道它?如果它不知道它,为什么你的系统不从配置中读取它)等等。Did you setup your menu with ACL roles? If so, does your user have the correct role?
Assuming the above is true, the
Mage_Adminhtml_Block_Page_Menu
class is responsible for rendering the menus. I'd start by adding some temporary debugging code to determine why this class is skipping your menu. (is it skipping it, or does it not know about it? If it doesn't know about it, why isn't your system reading it from the config) etc. etc.