More commenting.
This commit is contained in:
parent
093ece581c
commit
80b2b647c9
@ -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';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user