Skip to content

Commit f644cdc

Browse files
committed
docs: update sample code and add about $autoRoutesImproved just in case
1 parent b367f2f commit f644cdc

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

user_guide_src/source/incoming/routing.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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**::
828+
829+
public bool $autoRoute = true;
830+
831+
And set the property ``$autoRoutesImproved`` to ``false`` in **app/Config/Feature.php**::
828832

829-
$routes->setAutoRoute(true);
833+
public bool $autoRoutesImproved = false;
830834

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

0 commit comments

Comments
 (0)