我在刷新色板图像缓存时遇到了Fatal error: Class 'Mage_Configurableswatches_Helper_Productimg' not found in /app/Mage.php on line 547
。
请让我知道如何解决此问题?
在Configurableswatches/Helper中创建一个文件,Productimg喜欢:
class Configurableswatches_Helper_Productimg extends Mage_Core_Helper_Abstract
{
}
您可以签入Magento助手
您没有告诉模块的公司名称或命名空间是什么。
例如,app/code/local/Foobar/Configurableswatches
接受Foobar作为命名空间,Configurableswatches作为模块名称。
这必须在您的config.xml
文件中匹配才能正常工作。
<config>
<global>
<helpers>
<module_name>
<class>Namespace_Configurableswatches_Helper_Productimg </class>
</module_name>
</helpers>
</global>
</config>
在Namespace/Configurableswatches/Helper
中,使用此内容创建新文件Productimg.php
class Namespace_Configurableswatches_Helper_Productimg extends Mage_Core_Helper_Abstract
{
}
使命名空间与您的命名空间保持一致。
记得之后刷新缓存。