A simple PHP model-view-controller framework, built step-by-step as part of the "Write PHP like a pro: build an MVC framework from scratch" course on Udemy.
Hi! The standard route settings are based in this:
$router->add('', ['controller' => 'Home', 'action' => 'index']); $router->add('posts/index', ['controller' => 'Posts', 'action' => 'index']);
@daveh , how can i set the route for dynamic url like: @*, domain.com/@foo, domain.com/@bar ... ???
Hi! The standard route settings are based in this:
$router->add('', ['controller' => 'Home', 'action' => 'index']); $router->add('posts/index', ['controller' => 'Posts', 'action' => 'index']);
@daveh , how can i set the route for dynamic url like: @*, domain.com/@foo, domain.com/@bar ... ???
Have a nice day!