Router
Component that stores routes and calls the associated controller methods
Creating Routes
<?php // routes.php
require_once __DIR__ . "\\..\\vendor\\autoload.php";
use sirJuni\Framework\Handler\Router;
// add the controllers.php file here
require_once "controllers.php";
// add a route
Router::add_route('GET', '/user/Admin', [HomeController::class, 'index']);
?>Set Error Handler
Last updated