I'm trying to set up an event observer in Magento. The event I'm am observing IS fired but it would seem that my method won't run. My module is registered and all is fine.
Here's the config.xml that defines the observers
<?xml version="1.0" encoding="UTF-8"?>
<config>
<global>
<models>
<technoberglink>
<class>
Technoberg_Link_Model
</class>
</technoberglink>
</models>
</global>
<frontend>
<events>
<cms_page_render><!-- sales order place after -->
<observers>
<Technoberg_Link_Observer>
<type>
singleton
</type>
<class>
Technoberg_Link_Model_Observer
</class>
<method>
start_link
</method>
</Technoberg_Link_Observer>
</observers>
</cms_page_render>
</events>
</frontend>
</config>
Now I do know that the event is fired because if I change the class of Technoberg_Link_Model_Observer to something else a few errors are logged stating that the file couldn't be found.
Here's my Observer.php file
class Technoberg_Link_Model_Observer {
function __construct(){
}
public function start_link($e){
Mage::log("Dummy code executed");
return $this;
}
}
I have no idea why my method isn't executed so any help would be great!