Skip to content

Commit 75d1b3b

Browse files
authored
Merge pull request #8301 from kenjis/docs-enable-auto-routing
docs: fix "Enable Auto Routing (Legacy)"
2 parents e49516c + fa9002a commit 75d1b3b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

user_guide_src/source/incoming/routing.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ and execute the corresponding controller methods.
693693
Enable Auto Routing
694694
===================
695695

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

698698
public bool $autoRoute = true;
699699

@@ -824,9 +824,13 @@ Enable Auto Routing (Legacy)
824824

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

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

829-
$routes->setAutoRoute(true);
829+
public bool $autoRoute = true;
830+
831+
And set the property ``$autoRoutesImproved`` to ``false`` in **app/Config/Feature.php**::
832+
833+
public bool $autoRoutesImproved = false;
830834

831835
URI Segments (Legacy)
832836
=====================

0 commit comments

Comments
 (0)