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.
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.
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?
даже так я не могу понять это, пишу сайт пхп ооп и вообще не могу знания оптимизировать, можно обойтись без маршрутов и маршрутизаторов, и что бы их кодить нужно сначала контроллеры прописать или запросы ааааа вообще хаус какой то в голове. Подскажите кто нибудь есть ли документация алгоритм какой нибудь( сперва делаем это, потом то, в зависимости от каких либо факторов прописываем в таком файле такой то код....)
Agree that using global variables is not a good idea… but, for this quick tutorial it worth it, if a software developer wants to start with own routing. Check my other videos related to routing as well
Думаю global устарел лет 10 назад, крайне вредный урок, никогда так не делайте. P.S. знаю, что пишу как тупой хейтер, но блин, не смог пропустить, надеюсь не обидел. Английский у тебя норм👍, лучше чем у меня точно.
what if there is a parameter like take a GET value?
Needed a quick, understandable tutorial on how to build a PHP router, and got exactly that! Thanks maan :)
Thanks, you will be surprised, however, there is a newer video I published last week th-cam.com/video/MFEaVYZ6DoY/w-d-xo.html
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.
man i saw so many video and articles but your 4 minutes made my day, thank you so much
Thanks
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.
Thanks Anand.
I will see you soon!
Thanks for the video. Do you have an example to pass controller methods and execute it In the routes?
Hey after implementing the router i am getting a database erro saying: "Database Error: could not find driver", please help me
You should check your php modules
what should i write instead of echo to open another php file?
How do you want to open a file?
echo will only show some text but I want to load another php file
@@Morimove fopen() or file_get_contents() or require_once or include_once can help.
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?
.htaccess file should be added
Please do another video of adding parameters to the URI and using routes to match that params. Nice video by the way.
want to send the palamater How to do?
A few adjustments in the code might be required.
Хорошая реализация. Как насчёт динамических маршрутов?
Отличная идея, добавлю тему на следующий стрим
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.
Great, thanks for the feedback!
даже так я не могу понять это, пишу сайт пхп ооп и вообще не могу знания оптимизировать, можно обойтись без маршрутов и маршрутизаторов, и что бы их кодить нужно сначала контроллеры прописать или запросы ааааа вообще хаус какой то в голове. Подскажите кто нибудь есть ли документация алгоритм какой нибудь( сперва делаем это, потом то, в зависимости от каких либо факторов прописываем в таком файле такой то код....)
how to upload file with put api in php
I will record a video for this
Great video Max 👍.
Thanks, Mark!
its not working
Fix it
Как раз то что нужно для новичков.
That was awesome, thanks man
You are welcome!
Amazing Bro, Thanks
Thanks.
could you do it any faster?
What do you mean?
Very nice ! Thank you. i like your accent by the way
Thanks
All Hail to the king of Routing👑
Thanks!
interested
you a russian? 😇😀
Of course I am NOT. I am Ukrainian!
I'm afraid that using global variables is a complete negation of the ideas behind functional programming....
Agree that using global variables is not a good idea… but, for this quick tutorial it worth it, if a software developer wants to start with own routing. Check my other videos related to routing as well
Cool
Thanks 😊
Finish English?
Start PHP
❤️❤️❤️❤️
😍
Думаю global устарел лет 10 назад, крайне вредный урок, никогда так не делайте.
P.S. знаю, что пишу как тупой хейтер, но блин, не смог пропустить, надеюсь не обидел. Английский у тебя норм👍, лучше чем у меня точно.
Реально, тупой хейтер)))
сказал global устарел, напиши что использовать вместо него!?
Good job bro, JESUS IS COMING BACK VERY SOON; WATCH AND PREPARE