Magento事件观察者未在centos中开火

Magento事件观察者未在centos中开火,magento,centos,Magento,Centos,它在我的本地windows计算机上工作,但在centos服务器上不工作 我的配置是我的文件夹结构是 Caitlinhavener\Dynamicprice\Model\Observer.php Caitlinhavener\Dynamicprice\etc\config.xml 我的配置文件是: <?xml version="1.0"?> <config> <modules> <Caitlinhavener_Dynamicpr

它在我的本地windows计算机上工作,但在centos服务器上不工作

我的配置是我的文件夹结构是

Caitlinhavener\Dynamicprice\Model\Observer.php Caitlinhavener\Dynamicprice\etc\config.xml

我的配置文件是:

<?xml version="1.0"?>
<config>    
   <modules>
       <Caitlinhavener_Dynamicprice>
           <version>0.1.0</version>
        </Caitlinhavener_Dynamicprice>
   </modules>
   <global>
      <models>
           <chdispatcher>
               <class>Caitlinhavener_Dynamicprice_Model</class>
           </chdispatcher>
       </models>
   </global>
   <frontend>
       <events>
            <checkout_cart_product_add_after>
                <observers>
                    <modify_to_custom_price>
                        <type>singleton</type>
                        <class>chdispatcher/observer</class>
                        <method>modifyPrice</method>
                    </modify_to_custom_price>
                </observers>
            </checkout_cart_product_add_after>
       </events>
    </frontend>
</config>

0.1.0
Caitlinhavener_Dynamicprice_模型
独生子女
chdispatcher/观察员
修改价格
Observer.php

<?php
Mage::log('Im here')
or exit("unable to log");
class Caitlinhavener_Dynamicprice_Model_Observer
{
    public function modifyPrice(Varien_Event_Observer $obs)
    {
      echo "inside";exit;
    }



}
?>


此配置中不一定存在问题。如果您的模块在windows下工作,我假设模块中的某个地方出现大写字符(小/大字符)问题。这可能是模块名、命名空间、类名、Caitlinhavener_Dynamicprice.xml或其他文件路径等的错误字符。。对于windows来说,大小字母没有区别,但对于Unix来说,这一点很重要。您可以在另一个模块中尝试您的观察者来检查它。对不起,我的英语不好。

请检查您的型号文件名或观察员文件名,可能存在区分大小写的问题