I need to add two methods in two separate Mage/core models. I'm trying to create my own methods in the local code pool, but without any success.
I'm sure the problem lies in my XML file (can't find any reference documentation). The core Mage files reside here:
app->code->core->Mage->Customer->Model->Address->Abstract.php
app->code->core->Mage->Customer->Model->Resource->Customer.php
My own files reside here:
app->code->local->Jongosi->Base->Model->Address->Abstract.php
app->code->local->Jongosi->Base->Model->Resource->Customer.php
My config.xml file looks like this:
<config>
<global>
<models>
<customer>
<address>
<rewrite>
<abstract>Jongosi_Base_Model_Address_Abstract</abstract>
</rewrite>
</address>
</customer>
</models>
<models>
<customer>
<resource>
<rewrite>
<customer>Jongosi_Base_Model_Resource_Customer</customer>
</rewrite>
</resource>
</customer>
</models>
</global>
</config>
Could anyone tell me what I'm doing wrong please?