在模块A中,我需要从模块B和C的config.xml文件中获取一些数据。是否有专门用于此的方法或类?
特别是,我需要获取节点的XML结构和值,<default>以便可以恢复模块B和C的系统配置的默认值。以下是Wishlist模块的config.xml中的示例:
<config>
    <default>
        <wishlist>
            <general>
                <active>1</active>
            </general>
            <email>
                <email_identity>general</email_identity>
                <email_template>wishlist_email_email_template</email_template>
            </email>
        </wishlist>
    </default>
</config>据我所知,Magento加载了所有模块的config.xml文件,所以我想知道此数据是否已经缓存,并且可以通过某种方式从缓存中检索?如果没有,如何以编程方式检索它?
path中core_config_data也定义了该值,则可以从数据库中检索该值。但仅在XML的配置文件中(这是默认设置)