magento新建模块覆盖旧版后台

magento新建模块覆盖旧版后台_第1张图片

config.xml 配置

<?xml version="1.0"?>
<config>
    <modules>
        <Youpackage_Adminhtml>
            <version>0.1.2</version>
        </Youpackage_Adminhtml>
    </modules>
    <admin>
        <routers>
            <adminhtml>
                <args>
                    <modules>
                        
                        <appgame_adminhtml after="Mage_Adminhtml">Appgame_Adminhtml</appgame_adminhtml>                //在Mage_Adminhtml 之后执行
                    </modules>
                </args>
            </adminhtml>
        </routers>
    </admin>
    <adminhtml>
        <layout>
            <updates>
                <Youpackage_Adminhtml>
                    <file>adminhtml.xml</file>
                    //layout 文件夹
                </Youpackage_Adminhtml>
            </updates>
        </layout>
        <translate>
            <modules>
                <Youpackage_Adminhtml>
                    <files>
                        <default>Youpackage_Adminhtml.csv</default>
                        //语言包
                    </files>
                </Youpackage_Adminhtml>
            </modules>
        </translate>
    </adminhtml>
    <global>
        <blocks>
            <youpackage_adminhtml>
                <class>Youpackage_Adminhtml_Block</class>
                // blocks 
            </youpackage_adminhtml>
        </blocks>
        <helpers>
            <youpackage_adminhtml>
                <class>Youpackage_Adminhtml_Helper</class>
                // Helper
            </youpackage_adminhtml>
        </helpers>
        <models>
            <youpackage_adminhtml_resource>
                <class>Youpackage_Adminhtml_Model_Resource</class>
                <deprecatedNode>adminhtml_mysql4</deprecatedNode>
            </youpackage_adminhtml_resource>
            <youpackage_adminhtml>
                <class>Youpackage_Adminhtml_Model</class>
                // model 
                <resourceModel>youpackage_adminhtml_resource</resourceModel>
                // 资源模型 
            </youpackage_adminhtml>
        </models>
        <resources>
            <youpackage_adminhtml_setup>
                <setup>
                    <module>Youpackage_Adminhtml</module>
                    <class>Mage_Catalog_Model_Resource_Setup</class>
                </setup>
                //安装文件设置
            </youpackage_adminhtml_setup>
        </resources>
    </global>

</config>



你可能感兴趣的:(magento新建模块覆盖旧版后台)