Skip to content

Commit debbc5a

Browse files
committed
docs: update ref name
1 parent a0554f3 commit debbc5a

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

user_guide_src/source/cli/cli_controllers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ works exactly like a normal route definition:
4141

4242
For more information, see the :ref:`Routes <command-line-only-routes>` page.
4343

44-
.. warning:: If you enable :ref:`auto-routing` and place the command file in **app/Controllers**,
44+
.. warning:: If you enable :ref:`auto-routing-legacy` and place the command file in **app/Controllers**,
4545
anyone could access the command with the help of auto-routing via HTTP.
4646

4747
Run via CLI

user_guide_src/source/incoming/routing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ available from the command line:
361361
.. note:: It is recommended to use Spark Commands for CLI scripts instead of calling controllers via CLI.
362362
See the :doc:`../cli/cli_commands` page for detailed information.
363363

364-
.. warning:: If you enable :ref:`auto-routing` and place the command file in **app/Controllers**,
364+
.. warning:: If you enable :ref:`auto-routing-legacy` and place the command file in **app/Controllers**,
365365
anyone could access the command with the help of auto-routing via HTTP.
366366

367367
Global Options
@@ -668,7 +668,7 @@ In this example, if the user were to visit **example.com/products**, and a ``Pro
668668
.. note:: You cannot access the controller with the URI of the default method name.
669669
In the example above, you can access **example.com/products**, but if you access **example.com/products/listall**, it will be not found.
670670

671-
.. _auto-routing:
671+
.. _auto-routing-legacy:
672672

673673
Auto Routing (Legacy)
674674
*********************

user_guide_src/source/installation/upgrade_4xx.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Application Structure
5858
Routing
5959
=======
6060

61-
- The Auto Routing is disabled by default. If you want to use the Auto Routing in the same way as CI3, you need to enable :ref:`auto-routing`.
61+
- The Auto Routing is disabled by default. If you want to use the Auto Routing in the same way as CI3, you need to enable :ref:`auto-routing-legacy`.
6262
- CI4 also has an optional new more secure :ref:`auto-routing-improved`.
6363

6464
Model, View and Controller

user_guide_src/source/installation/upgrade_routing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ What has been changed
2121
Upgrade Guide
2222
=============
2323

24-
1. If you use the Auto Routing in the same way as CI3, you need to enable :ref:`auto-routing`.
24+
1. If you use the Auto Routing in the same way as CI3, you need to enable :ref:`auto-routing-legacy`.
2525
2. The placeholder ``(:any)`` in CI3 will be ``(:segment)`` in CI4.
2626
3. You have to change the syntax of each routing line and append it in **app/Config/Routes.php**. For example:
2727

user_guide_src/source/tutorial/create_news_items.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ It configures the CSRF filter to be enabled for all **POST** requests.
2323
You can read more about the CSRF protection in :doc:`Security </libraries/security>` library.
2424

2525
.. Warning:: In general, if you use ``$methods`` filters, you should :ref:`disable Auto Routing (Legacy) <use-defined-routes-only>`
26-
because :ref:`auto-routing` permits any HTTP method to access a controller.
26+
because :ref:`auto-routing-legacy` permits any HTTP method to access a controller.
2727
Accessing the controller with a method you don't expect could bypass the filter.
2828

2929
Create a Form

0 commit comments

Comments
 (0)