Simple Routing with PHP | Functional Programming

preview_player
Показать описание
Master your first routing system using PHP programming language.

Some of the ways you can support the channel:
👍 Smash the like button
🤝 Subscribe to the channel & turn the notifications on
💬 Post comments, any feedback is greatly appreciated

Thank you!

Tools & Services I use:

Рекомендации по теме
Комментарии
Автор

Thanks for this excellent explanation.
For people asking about parameters passing, clearly this is oversimplified explanation to understand how it's done.
You should add your own functions to filter the URL and extract/pass request data to the expecting function.
Personally, I prefer to add separate routes for functions that expect user inputs.

HonaPHP
Автор

Needed a quick, understandable tutorial on how to build a PHP router, and got exactly that! Thanks maan :)

adrian.gubrica
Автор

man i saw so many video and articles but your 4 minutes made my day, thank you so much

asifurrahman
Автор

It is explained in a very easy for the beginners.

It will be definitely helpful for many.

Thank you Max.

I will see you again at any future meetup after this pandemic is over.

Have a great evening.

Regards,
Anand Patel.

AndyPatelweboffice
Автор

what if there is a parameter like take a GET value?

muafaasyarifudin
Автор

Thanks for the video. Do you have an example to pass controller methods and execute it In the routes?

lserranoit
Автор

Please do another video of adding parameters to the URI and using routes to match that params. Nice video by the way.

MrVimkaf
Автор

Good video Max! Keep it up 👍


One thing for improvement – lining up the voice level for the peaces, so the whole video sounds more consistently.

oleksiilisovyi
Автор

Хорошая реализация. Как насчёт динамических маршрутов?

Почтитащеры
Автор

There must be additional setup not explained in the video because how does the server know to run the PHP code in index.php if you are trying to access an entirely different subfolder?

jeffsnow
Автор

Very nice ! Thank you. i like your accent by the way

michaellie
Автор

Hey after implementing the router i am getting a database erro saying: "Database Error: could not find driver", please help me

asifurrahman
Автор

даже так я не могу понять это, пишу сайт пхп ооп и вообще не могу знания оптимизировать, можно обойтись без маршрутов и маршрутизаторов, и что бы их кодить нужно сначала контроллеры прописать или запросы ааааа вообще хаус какой то в голове. Подскажите кто нибудь есть ли документация алгоритм какой нибудь( сперва делаем это, потом то, в зависимости от каких либо факторов прописываем в таком файле такой то код....)

AndreiZhuravlev
Автор

what should i write instead of echo to open another php file?

Morimove
Автор

how to upload file with put api in php

me....
Автор

Думаю global устарел лет 10 назад, крайне вредный урок, никогда так не делайте.

P.S. знаю, что пишу как тупой хейтер, но блин, не смог пропустить, надеюсь не обидел. Английский у тебя норм👍, лучше чем у меня точно.

vashkatsi
Автор

I'm afraid that using global variables is a complete negation of the ideas behind functional programming....

coder_one
Автор

Good job bro, JESUS IS COMING BACK VERY SOON; WATCH AND PREPARE

thechoosen