Now that we are capable of saving and manipulating the data by using our models, we need to provide a way for customers to interact with the actual gift registries; that is our first step. We need to create valid routes or URLs in the frontend.
As with many things in Magento, this is controlled by the configuration file. A route will convert a URL into a valid controller, action, and method.
Open our config.xml
file. The file location is app/code/local/Mdg/Giftregistry/etc/config.xml
. Refer to the following code:
<config> … <frontend> <routers> <mdg_giftregistry> <use>standard</use> <args> <module>Mdg_Giftregistry</module> <frontName>giftregistry</frontName> </args> </mdg_giftregistry> </routers> </frontend> … </config>
Let's break down the configuration...