Certificated magento

Q.2.14) How does the standard router map a request to a controller class?

 - the router tries to get the module name from the request

- if he can't find a module he checks if request came from admin area

- if so he sets the module to 'admin'
- otherwise he returns false
- if he find a modulename from request he searches afterwards for all modules with a matching frontName
- for each module he looks than if the module has the controller class and action method which are set in the request
- if he finds a module he resets the moduleName, ControllerName, ActionName and also sets the ControllerModule
- after that the request is set to dispatch = true
- and finally the controller dispatches the action method

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