🧙‍♂️ New course! Magento 2 Router Wizardry

Learn more
Magento 2 Router Wizardry course image

Magento 2 Router Wizardry

How to create a custom router, advanced routing concepts, and efficiently structure code for dynamic data loading.

19 lessons

1h 12m

You want to master Magento routing, ...but it often feels like navigating a maze. This course aims to demystify Magento 2 routing with hands-on, real-world examples.

This course dives into creating custom routes and controller actions, understanding routing priorities, and using Xdebug to trace requests. You’ll learn how to craft custom routers, match requests, and return action responses. We also cover creating blocks, templates, and ViewModels to fetch and display data, solving issues like the N+1 problem, and more. Whether you're a seasoned developer or just getting started, this course will equip you with the skills to handle Magento routing with confidence.

Course curriculum

Each video lesson can be played back & referenced as many times as you wish at slow or fast speed, tech-friendly closed captions, and full source code.

Spanish, Portuguese, French & German translations provided by Google Translate

19 lessons

1h 12m

Just launched May 17, 2024!

Included screencasts

Install prerequisites and create the module skeleton
Install prerequisites and create the module skeleton
Create a custom route and controller action
Create a custom route and controller action
Trace a standard router request with Xdebug
Trace a standard router request with Xdebug
Identify routers and routing priority
Identify routers and routing priority
Determine when to create a custom router
Determine when to create a custom router
Determine router sort order
Determine router sort order
Create a custom router
Create a custom router
Match a request to a custom router
Match a request to a custom router
Return an action response or bypass the router
Return an action response or bypass the router
Create a block, template and stylesheet
Create a block, template and stylesheet
Create a ViewModel
Create a ViewModel
Fetch a URL param with a ViewModel
Fetch a URL param with a ViewModel
Retrieve product data with a ViewModel
Retrieve product data with a ViewModel
Define hard dependencies with Composer
Define hard dependencies with Composer
Access a helper class with a ViewModel
Access a helper class with a ViewModel
Solve the N+1 problem with SearchCriteriaBuilder
Solve the N+1 problem with SearchCriteriaBuilder
Use array_map with a static function
Use array_map with a static function
Catch and write errors to a log file
Catch and write errors to a log file
Next steps
Next steps
This course retails for
$ 99
* Individual course enrollment no longer available.
Enroll in the University to access this course 👇
Graduation cap on M.academy

University

Get access to all current & future courses at M.academy.

“Thank you so much for the wonderful course. The way you drill down the checkout process is awesome. It helps me understand the whole checkout, UI component, and extending core JavaScript processes. I appreciate you helping us with your knowledge.”  

Frequently asked questions

Who is this course meant for?
This course was designed to be consumed by developers with a working knowledge of Magento 2 who want to advance their knowledge of the advanced areas of the Magento checkout. It is not intended for those new to Magento 2 programming.
What do I need to know to take this course?
Those new to Magento should first becoming familiar with Magento core development. Before taking the course, they should also have a solid understanding of JavaScript Development Fundamentals as well as Frontend UI Components in Magento 2.
Attempting to take this course without a solid understanding of all of these prerequisites will inevitably lead to failure.
Do I need a development environment setup?
Yes, this course assumes you have a running development environment of Magento setup and running locally. If you don't already have a development environment setup, please set one up before enrolling in the course. M.academy has a free course, Set Up a Magento 2 Development Environment with Docker.
What version of Magento is this based on?
This course was created using concepts featured in Magento version 2.4. If a new best-practice approach is introduced in a future version of Magento 2, the course will be updated appropriately.
This course comes with access to Maggie, your personal Magento tutor!

Maggie Bolt 💁‍♀️

Hi, I'm Maggie! 👋

Your dedicated Magento 2 mentor, on-hand 24/7 within all premium courses to help guide you through your learning journey.

Maggie's avatar