问题描述
如果每个人都讨厌Magento,那么它会在能够编写一些代码之前无休止地配置您的模块.我正在为即将开始的未来项目收集常见的Magento配置错误列表.
If there's something that everybody hates about Magento it's endlessly configuring your modules before being able to write some code. I'm trying to collect a list of common Magento configuration errors for a future project that's I'm close to launching.
我正在寻找特定的例子,例如在类名上使用错误的命名约定,在设置分组的类名时忘记了<class />
包装器.诸如此类的小事会使您发呆数小时,直到您意识到自己的错误为止.
I'm looking for specific examples of things like using the wrong naming convention on classnames, forgetting the <class />
wrapper when setting up grouped class names. Little things like that that drive you batty for hours until you realize your error.
细节越多越好!
推荐答案
在/app/etc/module/your_Module.xml驼色 codePool 中,否则将失败
in /app/etc/module/your_Module.xml camelcase codePool otherwise will fail
<?xml version="1.0"?>
<config>
<modules>
<Your_Module>
<!-- <codepool>local</codepool> this will fail silently-->
<codePool>local</codePool>
<active>true</active>
</Omx_Hooks>
</modules>
</config>
这篇关于您的Magento常见配置错误是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!