Set default configuration values with XML in Magento
Set default Magento module configuration values in config.xml for sensible out-of-the-box settings and easy customization.
Lesson Content
Magento uses config XML files to define default configuration values for modules. These files are the foundation of Magento's configuration system and establish the baseline settings for your module.
Each module can have its own config.xml file that lives in the module's etc directory:
app/code/Vendor/Module/etc/config.xml
You can think of it as the starting point for your module's configuration.
Here's what a typical config.xml file looks like:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.