corso https://vola.udemy.com/course/php-mvc-from-scratch/learn/lecture/40931984#overview
filippo.bertilotti
2024-05-23 85f6ec1bc8f094e769835e9836b9fab7fb9e6ace
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"]);