corso https://vola.udemy.com/course/php-mvc-from-scratch/learn/lecture/40931984#overview
filippo.bertilotti
2024-05-21 ce9b2119ceb911faab15fa43e741d63e3fb7834c
src/Framework/Dispatcher.php
@@ -2,6 +2,7 @@
namespace Framework;
use Framework\Exceptions\PageNotFoundException;
use ReflectionMethod;
class Dispatcher {
@@ -12,7 +13,7 @@
        $params = $this->router->match($path);
        if($params === false) {
            exit("No routes matched");
            throw new PageNotFoundException("No route matched for '$path'");
        }
        $controller = "App\Controllers\\" . ucwords($params["controller"]);