Overview of routers in Magento
Learn how built in Magento routers process web requests, frontend routes, adminhtml routing, and REST API handling.
Lesson Content
Web requests are processed by the web server, and are then sent through the entry point of the application. The “webroot” of the app is determined by the directory the web server is looking at, which in Magento’s case ispub, and since the default file to handle requests is index.php, this is the entry point of Magento. So every web request in Magento gets sent through this pub/index.php file. This bootstraps the application, kicking off the app initialization process.
Without getting into too much unnecessary detail, Magento has different routers set up to handle different incoming re...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.