Certificated magento

Q.2.2) How and when does Magento load the base configuration, the module configuration, and the database configuration?

 Magento loads the base configuration, the module configuration and the database configuration in Mage_Core_Model_Config->init()

 
The order of loading is:
Base configuration (all *.xml files from /app/etc/ directory)
Module configuration (active modules merged with local.xml file at the end to prevent directives overwriting)
Database configuration
 
 
/**
* Initialization of core configuration
*
* @return Mage_Core_Model_Config
*/
public function init($options=array())
{
  $this->setCacheChecksum(null);
  $this->_cacheLoadedSections = array();
  $this->setOptions($options);
  $this->loadBase();
 
  $cacheLoad = $this->loadModulesCache();
  if ($cacheLoad) {
    return $this;
  }
  $this->loadModules();
  $this->loadDb();
  $this->saveCache();
  return $this;
}

0 Bình luận

Trở về
  • 1.12) Set up a cron job
  • 1.12) Set up a cron job

    Let’s start with server setup.   As any complex system, Magento has a lot of tasks that need to be executed...