I want to create a Model that could be called from another extension. The tutorials I've found so far are quite confusing and I couldn't get it to work.
What is the minimum I need to do to make a fully functional model?
I have setup a simple module.
config.xml
with the content:
<?xml version="1.0"?>
<config>
<modules>
<Jurgis_Checkoutstep>
<version>0.1.0</version>
</Jurgis_Checkoutstep>
</modules>
<frontend>
<routers>
<Checkoutstep>
<use>standard</use>
<args>
<module>Jurgis_Checkoutstep</module>
<frontName>Checkoutstep</frontName>
</args>
</Checkoutstep>
</routers>
</frontend>
</config>
Path: /app/code/local/Jurgis/Checkoutstep/etc/config.xml
Let's say I want to have a Model called deliverydate.php
in:app/code/local/Jurgis/Checkoutstep/Model
What do I need to add to config.xml
and deliverydate.php
(anywere else?) to create a working Model?