Home / Blog / Routing with PHP: tutorial
Routing with PHP: tutorial

Routing with PHP: tutorial

  • Anna KoshevaAnna Kosheva
  • December 20, 2022

    December 20, 2022

With a routing system, you can split the different pages and handle these pages individually. Let’s find out what this URL is before we start to code. 

URL consists of three parts:

  1. Scheme 
  2. Domain 
  3. Request URI.  

To implement simple routing, we need to match the request URI and implement a logic responsible for processing this request URI. So, we can build as many pages as we need to, and each page will proceed by a separate PHP function or a road. Finding the right road for the request, URI is called a road, also known as dispatching a road. 

Learn more in the video.

  • Anna KoshevaAnna Kosheva
  • December 20, 2022

    December 20, 2022

Sign up and don't miss our awesome Mage Mastery lessons and updates!

Related Posts
What allows a simple routing system?

What allows a simple routing system?

editAnna Kosheva
edit September 22, 2022

What are the components of an URL? How to implement there simple routing? Learn it in the new blog!

PHP Routing

PHP Routing

editMax Pronko
edit September 03, 2022

Ever wondered how to create PHP routing to handle different requests? Let’s create custom php function that is going to find the route and process a HTTP GET request in its own callback function.

If you like this blog post, you may want to watch
Intermediate
 
Max Pronko
Web Icon20 lessons
Clock Icon15 hours 00 mins
Adobe Certified Professional — Magento Commerce Developer Study Group is an 10-week (1.5 hours/week) instructor-led study group. This study group will help PHP and JavaScript developers evaluate their readiness and prepare for the Adobe Certified Professional — Magento Commerce Developer exam.
Beginner
 
Max Pronko
Web Icon13 lessons
Clock Icon1 hour 57 mins
In this free course, you will learn Magento 2 development concepts and gain knowledge of building a fully functional Magento 2 Blog module. The online course will help you develop the necessary skills to become an Adobe Commerce Developer Expert.
2023 © Made with ❤ by Max Pronko