diff --git a/user_guide_src/source/incoming/routing.rst b/user_guide_src/source/incoming/routing.rst index 4e4cf08b30c1..f221e306b8fc 100644 --- a/user_guide_src/source/incoming/routing.rst +++ b/user_guide_src/source/incoming/routing.rst @@ -157,7 +157,7 @@ Retrieving the Controller and Method Names In some cases, you might need to determine which controller and method have been triggered by the current HTTP request. This can be useful for logging, debugging, or conditional logic based on the active controller method. -CodeIgniter 4 provides a simple way to access the current route's controller and method names using the ``Services::router()`` class. Here is an example: +CodeIgniter 4 provides a simple way to access the current route's controller and method names using the ``Router`` class. Here is an example: .. literalinclude:: routing/071.php