From f644cdcb8019800479ae52022b74dbd4a615c93a Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 7 Dec 2023 11:34:16 +0900 Subject: [PATCH 1/2] docs: update sample code and add about $autoRoutesImproved just in case --- user_guide_src/source/incoming/routing.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/user_guide_src/source/incoming/routing.rst b/user_guide_src/source/incoming/routing.rst index 646b66bd4ffc..659e6b03c168 100644 --- a/user_guide_src/source/incoming/routing.rst +++ b/user_guide_src/source/incoming/routing.rst @@ -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**:: + + public bool $autoRoute = true; + +And set the property ``$autoRoutesImproved`` to ``false`` in **app/Config/Feature.php**:: - $routes->setAutoRoute(true); + public bool $autoRoutesImproved = false; URI Segments (Legacy) ===================== From fa9002a2a3035e1cf62189049719fb22db63c95a Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 7 Dec 2023 11:35:39 +0900 Subject: [PATCH 2/2] docs: decorate `true` --- user_guide_src/source/incoming/routing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_guide_src/source/incoming/routing.rst b/user_guide_src/source/incoming/routing.rst index 659e6b03c168..c1820fe5a3cd 100644 --- a/user_guide_src/source/incoming/routing.rst +++ b/user_guide_src/source/incoming/routing.rst @@ -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;