How Magento MVC Works

  1. When Magento website receive a request,it will be intercepted by index.php file
  2. Index.php will instantiates magento application
  3. Magento application will instantiates Front Controller Object
  4. Front controller object will instantiates Router objects (speciafied in config.xml files.global tag)
  5. Router object check for the frontname in modules
  6. If any match is found corresponding controller function will be called
  7. Controller function can instantiates layout object that calls blocks at the same time it can communicate with model functions too.
  8. Block also can communicate with models which defines business logic + database operation
  9. Block will decide the phtml file to be loaded and phtml file displays output for the URL requested.