Explain How Magento Loads And Manipulates Configuration Information?

Q. Explain how Magento loads and manipulates configuration information?

$this->loadBase(); //config.xml and local.xml
$this->loadModules(); //load all modules xml from app/etc/modules/ directory
$this->_loadDeclaredModules(); //load each modules xml file
$this->loadDb(); //load configuration from db

load data from core_config_data into our configuration:

1. We add data about websites (see core_website table)
2. We add data about stores for the existing websites (see core_store table)
3. We add data from core_config_data according to the scope
a. Create <default> block first
b. Then create <websites> block
c. And, finally – <stores>
d. Each iteration replaces data from more general area of the scope with more specific one

Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Zeen is a next generation WordPress theme. It’s powerful, beautifully designed and comes with everything you need to engage your visitors and increase conversions.

Read More
Which Ways Exist To Specify The Layout Update Handles That Will Be Processed During A Request?