Skip to content

Commit

Permalink
fix: use Router in text
Browse files Browse the repository at this point in the history
Co-authored-by: kenjis <kenji.uui@gmail.com>
  • Loading branch information
datamweb and kenjis committed Aug 18, 2024
1 parent dea8829 commit 2861340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user_guide_src/source/incoming/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2861340

Please sign in to comment.