More commenting.

This commit is contained in:
Greg Sarjeant 2025-06-12 17:09:27 -04:00
parent 093ece581c
commit 80b2b647c9

View File

@ -41,9 +41,10 @@ class Router {
array_shift($matches);
if (strpos($controller, '@')) {
// Get the controller and method that handle this route
[$controllerName, $methodName] = explode('@', $controller);
} else {
// Default to 'index' method if no method specified
// Default to 'index' if no method specified
$controllerName = $controller;
$methodName = 'index';
}