Тэги:
#development #tutorial #howto #php #php_router #php_tutorial #php_for_beginners #custom_php_router #php_routing #php8 #php7 #phpstorm #php_framework #how_to_write_php_router #php_router_library #development_class_10Комментарии:
The most useful video demonstrating the MVC pattert in php that i watched so far.
Ответитьlike this one : $router->get('/contact/{$id}', function($param){
echo $param;
});
Hi sir it's helpful for me because i even build a complete script with it, but i came to blog post part in which i was stuck on how to make it pass variable to the routher like that get(/post/{$id}, Post::class.'::index') but it is not working pls how would i implement it like that
ОтветитьPHP' = Her personal productive! American Tribes
ОтветитьHello can you use php built in webserver and connect to database?
ОтветитьThanks a lot, Max, quite a helpful video.
Ответитьso cool dude!
ОтветитьCan you share the source code used here
ОтветитьHi nice work! I've followed all the video and I created a system as you taught. Some advice about passing parameters like users/$name/$surname ? Thanks
ОтветитьI always use a framework because of routing but for my small projects, it's kind a overkill. So this is perfect for my next project. Thanks Max
Ответитьhello, I created a custom router like this, it works on php local server, but the problem is that it don't work on XAMPP and 000webhost, only the home page works
Ответитьcall_user_func_array($callback, [
array_merge($_GET, $_POST)
]);
it's not working I have this error: GET /about - Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, no array or stri
ng given
Thanks alot mate it actually works <3.
ОтветитьHey after implementing the router i am getting a database erro saying: "Database Error: could not find driver", please help me
ОтветитьHi Max
Thank you very much for your tutorial. It has been really helpful for me.
Instead of using Laravel which is a huge framework for just creating a simple website, your tutorial is indeed great.
My question here is about twig, I would like to add twig in your tutorial but I kind of a bit lost. I would appreciate if you can give me some guidelines.
Thanks!
From now on I can't forget the name Max. Max the PHP routing master.. thank you
..en like the voice - audible enough to make me understand.. thanks once more again
Where is source code
Ответитьdude how can you handle scenario of items/{item-id} in this aproach ? thanx
ОтветитьI am confused. How does the passing an array named params to a callback function associate the variable to the incoming request query params?
ОтветитьHi how to include css file to phtml please I cant find
Ответитьunfortunate i ended up with a code base that does not work, it falls through to addNotFoundHandler, and there is no git repository of published material i can look up to help me figure out where i went wrong.
Ответитьgreat guide!
can you do a guide about adding middlewares? particularly for validate requests values
Can you add dynamic routing along with pattern match ??
ОтветитьЄврейський трохи роутер. Але більш-менш.
Над вимовою попрацюй. Або веди канал на рідній мові.
Hi Max,
Can you provide the link to the code in the video?
Thanks much.
Hey this help me so much thanks
Ответитьawesome i would interested to see a whole MVC framework😍
ОтветитьAwesome information Thank you so much
ОтветитьIt is useful. Thank you for sharing
ОтветитьFirst :D
Ответить