为什么我的 Magento 模块没有被加载?
我刚刚编写了一个 Magento 模块,但它没有被加载,我想调试它。
I just wrote a Magento module, but it's not being loaded and I'd like to debug it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里有几个类和方法负责加载的各个阶段。
Mage_Core_Model_Config
为每个模块调用(返回一个 Mage_Core_Model_Config 表示主配置目录中模块的 XML 块(启用、版本等)):
为每个模块调用,但只是构建一个结构,但仍然不包含各个模块配置:
加载配置.xml、enterprise.xml、local.xml 等:
加载各个模块配置:
Varien_Simplexml_Config (lib/Varien/Simplexml/Config.php)
实际读取各个模块配置的内容:
Dustin Oprea
Here are a couple of classes and the methods that are responsible for various stages of loading.
Mage_Core_Model_Config
Called for each module (returns a Mage_Core_Model_Config representing the module's XML block in the main config directory (enabled, version, etc..)):
Called for each module, but just builds a structure still without including the individual module configs:
Loads config.xml, enterprise.xml, local.xml, etc..:
Loads the individual module configs:
Varien_Simplexml_Config (lib/Varien/Simplexml/Config.php)
What actually reads the individual module configs:
Dustin Oprea