More commenting.
This commit is contained in:
parent
093ece581c
commit
80b2b647c9
@ -41,9 +41,10 @@ class Router {
|
|||||||
array_shift($matches);
|
array_shift($matches);
|
||||||
|
|
||||||
if (strpos($controller, '@')) {
|
if (strpos($controller, '@')) {
|
||||||
|
// Get the controller and method that handle this route
|
||||||
[$controllerName, $methodName] = explode('@', $controller);
|
[$controllerName, $methodName] = explode('@', $controller);
|
||||||
} else {
|
} else {
|
||||||
// Default to 'index' method if no method specified
|
// Default to 'index' if no method specified
|
||||||
$controllerName = $controller;
|
$controllerName = $controller;
|
||||||
$methodName = 'index';
|
$methodName = 'index';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user