Skip to content

Commit

Permalink
Merge pull request #8301 from kenjis/docs-enable-auto-routing
Browse files Browse the repository at this point in the history
docs: fix "Enable Auto Routing (Legacy)"
  • Loading branch information
kenjis authored Dec 7, 2023
2 parents e49516c + fa9002a commit 75d1b3b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions user_guide_src/source/incoming/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ and execute the corresponding controller methods.
Enable Auto Routing
===================

To use it, you need to change the setting ``$autoRoute`` option to true in **app/Config/Routing.php**::
To use it, you need to change the setting ``$autoRoute`` option to ``true`` in **app/Config/Routing.php**::

public bool $autoRoute = true;

Expand Down Expand Up @@ -824,9 +824,13 @@ Enable Auto Routing (Legacy)

Since v4.2.0, the auto-routing is disabled by default.

To use it, you need to change the setting ``$autoRoute`` option to true in **app/Config/Routing.php**::
To use it, you need to change the setting ``$autoRoute`` option to ``true`` in **app/Config/Routing.php**::

$routes->setAutoRoute(true);
public bool $autoRoute = true;

And set the property ``$autoRoutesImproved`` to ``false`` in **app/Config/Feature.php**::

public bool $autoRoutesImproved = false;

URI Segments (Legacy)
=====================
Expand Down

0 comments on commit 75d1b3b

Please sign in to comment.