I am trying to make an extension containing an observer.
But magento search the model in mage instead of my local extension "Test". system.log tells me:
Failed opening 'Mage/Sync/Model/Observer.php' for inclusion
My /app/code/local/Test/Sync/etc/config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Test_Sync>
<version>0.0.1</version>
</Test_Sync>
</modules>
<global>
<models>
<test>
<class>Test_Sync_Model</class>
</test>
</models>
</global>
<frontend>
<events>
<sales_order_save_commit_after>
<observers>
<test_sales_order_save_commit_after>
<type>singleton</type>
<class>sync/observer</class>
<method>export</method>
</test_sales_order_save_commit_after>
</observers>
</sales_order_save_commit_after>
</events>
</frontend>
</config>
/app/code/local/Test/Sync/Model/Observer.php
class Test_Sync_Model_Observer {
public function export($observer)
{
// code
}
}
I checked file access and cleared all caches.
Why does he not use my observer?