We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4259b47 commit dea8829Copy full SHA for dea8829
user_guide_src/source/incoming/routing/071.php
@@ -1,9 +1,10 @@
1
<?php
2
-
3
-use Config\Services;
4
5
-// Get the router instance
6
-$router = Services::router();
+/**
+ * Get the router instance
+ *
+ * @var \CodeIgniter\Router\Router $router
+ */
7
+$router = service('router');
8
9
// Retrieve the fully qualified class name of the controller handling the current request.
10
$controller = $router->controllerName();
0 commit comments