Certificated magento

Q.2.12) How and where does Magento find a matching record for the current request?

•app/Mage.php (Mage::app()->run())
•app/code/core/Mage/Core/Model/App.php
•Init and Dispatch controller ($this->getFrontController()->dispatch());
•app/code/core/Mage/Core/Controller/Varien/Front.php
•Chose the router match for dispatch ($router->match($this->getRequest()))
• app/code/core/Mage/Core/Controller/Varien/Router/Admin.php
• app/code/core/Mage/Core/Controller/Varien/Router/Standard.php
• …
• app/code/core/Mage/Core/Controller/Varien/Router/Default.php
•app/code/core/Mage/Core/Controller/Varien/Action.php
• Call Action function (Example: indexAction())
•Custom Controller/Action
•(app/code/core/Mage/Core/Controller/Response/Http.php)
 
The link process is primarily conducted in routers (the detail is the function  match($request). This function will analyze URL to find out the action to call. When  discovering the action, the system will leave the control authority to this action. After  carrying out, the action will return the control authority to the system. And then the  system returns the response content of that link.

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...