Magento Certified Developer GuideCategory: 2. Request FlowDescribe the steps for application initialization
Manish Prakash Staff asked 5 years ago

Broadly this is how magento initializes

1. Opening any controller, code always lands at index.php
2. It first check is ‘app/Mage.php’ file is located or not. If not, it redirects to ‘downloader’
3. Next the function Mage::run() gets called which starts up base store.
4. Configuration files at app/etc and app/etc/modules are read and loaded in ‘core/config’ model
5. Modules are sorted based on depends and module configuration files are loaded
6. Database connection is established and then configuration information from ‘core_config_data’ table is read and loaded into ‘core/config’
7. Install Scripts/Update Scripts are done
8. Mage_Core_Controller_Varien_Front::dispatch() is called which matches the current route to a controller
9. The controller action is called and finally output is disabled on browser