O'Reilly logo

Magento 2 Developer's Guide by Branko Ajzele

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a configuration file (config.xml)

Now we will create an app/code/Foggyline/Helpdesk/etc/config.xml file with the content, as follows:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store: etc/config.xsd">
    <default>
        <foggyline_helpdesk>
            <email_template>
                <customer>
                    foggyline_helpdesk_email_template_customer
                </customer>
                <store_owner>
                    foggyline_helpdesk_email_template_store_owner
                </store_owner>
            </email_template>
        </foggyline_helpdesk>
    </default>
</config>

This might look confusing at first as to where the default | foggyline_helpdesk | email_template structure comes from. The structure itself denotes the position of our configuration values that we ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required