我的模块遇到了一些问题,它在本地服务器上工作正常,但在开发服务器上却不行。这是我的代码:app/etc/modules/Ecophone_Specialoffer.xml
<?xml version="1.0"?>
<config>
<modules>
<Ecophone_Specialoffer>
<active>true</active>
<codePool>local</codePool>
</Ecophone_Specialoffer>
</modules>
</config>
配置文件 app/code/local/Ecophone/Specialoffer/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Ecophone_Specialoffer>
<version>0.1.0</version>
</Ecophone_Specialoffer>
</modules>
<frontend>
<events>
<checkout_cart_product_add_after>
<observers>
<Ecophone_Specialoffer_Model_Observer>
<type>singleton</type>
<class>Ecophone_Specialoffer_Model_Observer</class>
<method>changingPrice</method>
</Ecophone_Specialoffer_Model_Observer>
</observers>
</checkout_cart_product_add_after>
</events>
</frontend>
</config>
Observer.php app/code/local/Ecophone/Specialoffer/Model/Observer.php
class Ecophone_Specialoffer_Model_Observer {
public function changingPrice(Varien_Event_Observer $obs){
die('hello');
}
}
我不知道开发服务器会出现什么问题。