diff --git a/src/Framework/Router/Router.php b/src/Framework/Router/Router.php index 7fb1c9f..e0ea793 100644 --- a/src/Framework/Router/Router.php +++ b/src/Framework/Router/Router.php @@ -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'; }