magento-----建立后台菜单项
2011-01-27 01:21
127 查看
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。一定要有,否则会报错
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 后台xml配置
- magento 后台添加图片上传功能
- magento -- 后台产品列表页默认只显示可见性为“Catalog, Search”的产品
- magento ----后台grid模块的加载 --以news插件为例个人分析(一)
- 用Django写博客(二)建立管理后台
- 后台管理菜单,点击右边菜单项,左边内容刷新,整体页面不刷新
- 本地安装magento无法登陆后台的问题
- magento后台进入错误-----未完待续……
- Magento后台批量删除产品报错Fix for Magento issue: (SQLSTATE[22003]: Numeric value out of range: 1690 BIGINT UN
- PHP magento后台无法登录问题解决方法
- magento -- 给后台分类管理页的分类商品加一栏商品类型
- MAGENTO后台订单显示产品图片的修改方法
- magento后台无法登录解决办法的两种方法
- magento后台无法登陆的问题
- Magento后台无法登入 报404错误
- Magento后台表单所有数据类型(有editor哦)
- Magento 后台订单详情页Items Ordered列表处,添加跳转到编辑产品的url
- Magento后台Gird列表增持Action操作。
- MAGENTO 后台模块开发二