23.02.2015 Views

www.it-ebooks.info

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Frontend Development<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

//<br />

<br />

This time we are doing something new here. We are calling a helper; a helper is a<br />

class that contains methods that can be reused from blocks, templates, controllers,<br />

and so on. In our case, we are creating a helper that will retrieve all available registry<br />

types. Follow these steps:<br />

1. Navigate to app/code/local/Mdg/Giftregistry/Helper.<br />

2. Open the Data.php class.<br />

[ 124 ]<br />

<strong>www</strong>.<strong>it</strong>-<strong>ebooks</strong>.<strong>info</strong>

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

Saved successfully!

Ooh no, something went wrong!