magento-----建立后台菜单项
来源:互联网 发布:网络监控工程宝三合一 编辑:程序博客网 时间:2024/05/16 14:40
1
app/etc/modules/......xml
2
app/code/community/AQ/Gao/etc/config.xml
app/code/community/AQ/Gao/etc/adminhtml.xml
app/code/community/AQ/Gao/Helper/Data.php
3
3.1
app/code/community/AQ/Gao/Helper/Data.php
--------------->
<?php
class AQ_Gao_Helper_Data extends Mage_Core_Helper_Abstract{
}
?>
3.2
app/code/community/AQ/Gao/etc/config.xml
--------------->
<?xml version="1.0"?>
<config>
<modules>
<AQ_Gao>
<version>1.0.21</version>
</AQ_Gao>
</modules>
<global>
<helpers>
<gao>
<class>AQ_Gao_Helper</class>
</gao>
</helpers>
</global>
</config>
3.3
app/code/community/AQ/Gao/etc/adminhtml.xml
-------------------->
<?xml version="1.0" encoding="UTF-8"?>
<config>
<menu>
<gao module="gao">
<title>TerryTest11</title>
<sort_order>51</sort_order>
<children>
<aa module="gao">
<title>Bao</title>
<sort_order>0</sort_order>
<action>gao_admin/index/bao</action>
</aa>
<posts module="gao">
<title>Kun</title>
<sort_order>1</sort_order>
<action>gao_admin/index/kun</action>
</posts>
</children>
</gao>
</menu>
<acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<gao>
<title>TerryTest11</title>
<sort_order>51</sort_order>
<children>
<aa>
<title>Bao</title>
<sort_order>0</sort_order>
</aa>
<posts>
<title>Kun</title>
<sort_order>1</sort_order>
</posts>
</children>
</gao>
</children>
</admin>
</resources>
</acl>
</config>
注意事项:
1
adminhtml.xml中
<config>
<menu>
<gao module="gao">
此标签为module的名字,必须为gao。
2
helper/data.php。一定要有,否则会报错
- magento-----建立后台菜单项
- Magento后台订单页面增加邮箱项
- magento 后台取产品自定义的select(下拉菜单)字段
- magento后台用户
- Magento后台不能登录
- 配置magento后台翻译
- magento自定义后台配置
- magento后台设置笔记
- 重置magento后台用户密码
- Magento 后台不能登录
- magento 后台xml配置
- magento后台paypal设置
- 关于magento后台编辑器
- Magento后台权限设置
- 增加 magento top_menu菜单
- 后台建立
- 后台菜单
- Magento常见问题三 magento后台无法登陆
- nfs优化3
- 徒步:GPS-KML-maps
- VCard 2.1(rfc-2426)标准通信薄基本格式
- vcard 文件数据格式
- 破解大大有没有师傅来叫我啊
- magento-----建立后台菜单项
- 深入剖析oracle备份与恢复原理
- 讨论!!!
- obex
- GIS数据库ORACLE的某些参数设置
- 多元化控制文件和重做日志文件
- 使用实易智能DNS快速搭建智能DNS服务器
- emacs etag生成TAGS
- 思科有意收购Pari Networks