I have set an event-observer in my custom module but observer is not getting called. i have enabled my log and i am getting this warning :
2013-08-14T11:17:48+00:00 ERR (3): Warning: include(Mage/CompanyName/ModuleName/Model/Observer.php): failed to open stream: No such file or directory in /var/www/nyp/lib/Varien/Autoload.php on line 93
2013-08-14T11:17:48+00:00 ERR (3): Warning: include(): Failed opening 'Mage/CompanyName/ModuleName/Model/Observer.php' for inclusion (include_path='/var/www/nyp/app/code/local:/var/www/nyp/app/code/community:/var/www/nyp/app/code/core:/var/www/nyp/lib:.:/usr/share/php:/usr/share/pear') in /var/www/nyp/lib/Varien/Autoload.php on line 93
Code in my config.xml to attach event and observer :
<global>
<events>
<sales_order_place_after>
<observers>
<CompanyName_ModuleName_Observer>
<type>singleton</type>
<class>CompanyName_ModuleName/observer</class>
<method>methodName</method>
</CompanyName_ModuleName_Observer>
</observers>
</sales_order_place_after>
</events>
<global>
Code in my CompanyName/ModuleName/Model/Observer.php :
<?php
class CompanyName_ModuleName_Model_Observer
{
public function __contruct()
{
}
public function methodName(Varien_Event_Observer $observer)
{
}
}
Thanks,