From f9da010d0ad73edd50d327e8de83ad69b688cf4c Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 10 Nov 2023 08:35:42 +0900 Subject: [PATCH] docs: add note to not recommended Auto Routing (Legacy) --- user_guide_src/source/incoming/controllers.rst | 4 ++++ user_guide_src/source/incoming/routing.rst | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/user_guide_src/source/incoming/controllers.rst b/user_guide_src/source/incoming/controllers.rst index bf5a747cb462..113e9a50d5df 100644 --- a/user_guide_src/source/incoming/controllers.rst +++ b/user_guide_src/source/incoming/controllers.rst @@ -422,6 +422,10 @@ CodeIgniter also permits you to map your URIs using its :ref:`Defined Route Rout Auto Routing (Legacy) ********************* +.. important:: This feature exists only for backward compatibility. Do not use it + in new projects. Even if you are already using it, we recommend that you use + the :ref:`auto-routing-improved` instead. + This section describes the functionality of Auto Routing (Legacy) that is a routing system from CodeIgniter 3. It automatically routes an HTTP request, and executes the corresponding controller method without route definitions. The auto-routing is disabled by default. diff --git a/user_guide_src/source/incoming/routing.rst b/user_guide_src/source/incoming/routing.rst index 7db0eaf36e0b..ce753e929c0d 100644 --- a/user_guide_src/source/incoming/routing.rst +++ b/user_guide_src/source/incoming/routing.rst @@ -801,6 +801,10 @@ will be routed to ``Acme\Blog\Controllers\Foo::getBar()``. Auto Routing (Legacy) ********************* +.. important:: This feature exists only for backward compatibility. Do not use it + in new projects. Even if you are already using it, we recommend that you use + the :ref:`auto-routing-improved` instead. + Auto Routing (Legacy) is a routing system from CodeIgniter 3. It can automatically route HTTP requests based on conventions and execute the corresponding controller methods.