diff --git a/user_guide_src/source/incoming/routing.rst b/user_guide_src/source/incoming/routing.rst index 6462eb429dce..73d2e7642bcd 100644 --- a/user_guide_src/source/incoming/routing.rst +++ b/user_guide_src/source/incoming/routing.rst @@ -1136,7 +1136,7 @@ This involves retrieving details about the active controller and method, as well Below, we explore how to access this routing information to assist in tasks such as logging, debugging, or implementing conditional logic. Retrieving the Current Controller/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. @@ -1148,7 +1148,7 @@ CodeIgniter 4 provides a simple way to access the current route's controller and This functionality is particularly useful when you need to dynamically interact with your controller or log which method is handling a particular request. Getting Active Filters for the Current Route -==================================== +============================================ :doc:`Filters ` are a powerful feature that enables you to perform operations such as authentication, logging, and security checks before or after processing HTTP requests. To access the active filters for a specific route, you can use the :php:meth:`CodeIgniter\\Router\\Router::getFilters()` method from the ``Router`` class.