Skip to content

Commit f9da010

Browse files
committed
docs: add note to not recommended Auto Routing (Legacy)
1 parent 36e555c commit f9da010

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

user_guide_src/source/incoming/controllers.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,10 @@ CodeIgniter also permits you to map your URIs using its :ref:`Defined Route Rout
422422
Auto Routing (Legacy)
423423
*********************
424424

425+
.. important:: This feature exists only for backward compatibility. Do not use it
426+
in new projects. Even if you are already using it, we recommend that you use
427+
the :ref:`auto-routing-improved` instead.
428+
425429
This section describes the functionality of Auto Routing (Legacy) that is a routing system from CodeIgniter 3.
426430
It automatically routes an HTTP request, and executes the corresponding controller method
427431
without route definitions. The auto-routing is disabled by default.

user_guide_src/source/incoming/routing.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,10 @@ will be routed to ``Acme\Blog\Controllers\Foo::getBar()``.
801801
Auto Routing (Legacy)
802802
*********************
803803

804+
.. important:: This feature exists only for backward compatibility. Do not use it
805+
in new projects. Even if you are already using it, we recommend that you use
806+
the :ref:`auto-routing-improved` instead.
807+
804808
Auto Routing (Legacy) is a routing system from CodeIgniter 3.
805809
It can automatically route HTTP requests based on conventions and execute the corresponding controller methods.
806810

0 commit comments

Comments
 (0)