Instagram

About Me

Photo Profile
Meetanshi Architecture Designer

Meetanshi is found based on providing the best Magento Extensions and Customized eCommerce Business Solutions perfected to the users’ needs. Our Happy users make us Happy. Complete satisfaction to our clients is what drives and motivates us to work hard. Read More

Wednesday, June 29, 2022

A Complete Tutorial On Magento 2 Routing

Routing in Magento 2 defines the flow of request and the router classes that matches and processes the requests.

For examples, the router_name in request with the following endpoint in Magento 2 - /index.php/router_name/controller/action is used to find the module. The request follows the controller/action: index.php → HTTP app → FrontController → Routing → Controller processing → etc path to find the required module.


In the HTTP class, the FrontController is called for routing the request and finding the controller/action match. You can also create a custom route on frontend and admin in Magento 2 by creating routes.xml file in the respective directory.


I have provided complete steps along with the code to create custom frontend and admin route in Magento 2. You can read the complete post at https://meetanshi.com/blog/magento-2-routing/


No comments:
Write comments


Get more of our update !