23.02.2015 Views

www.it-ebooks.info

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Frontend Development<br />

We will also need to create a resource class; every Magento Data model has <strong>it</strong>s own<br />

resource class. It is also important to clarify that only models that handle the data<br />

directly, be <strong>it</strong> a simple data model or an EAV model, will require a resource class.<br />

To do so, follow these steps:<br />

1. Navigate to the Model folder on our module directory.<br />

2. Create a new folder under Model called Mysql4.<br />

3. Create a new file called Type.php and copy the following content into the file<br />

(the file location is app/code/local/Mdg/Giftregistry/Model/Mysql4/<br />

Type.php):<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!