Skip to content

Commit

Permalink
Merge pull request #8183 from kenjis/docs-add-note-to-auto-routing-le…
Browse files Browse the repository at this point in the history
…gacy

docs: add note to not recommended "Auto Routing (Legacy)"
  • Loading branch information
kenjis authored Nov 13, 2023
2 parents 278265e + f9da010 commit 863781f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions user_guide_src/source/incoming/controllers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions user_guide_src/source/incoming/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 863781f

Please sign in to comment.