From f990c7f9be275f054a73426e1cc7993756a1e965 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 24 Nov 2021 14:52:22 +0900 Subject: [PATCH 1/2] docs: add reference from Module Routes to Route processing queue --- user_guide_src/source/general/modules.rst | 3 +++ user_guide_src/source/incoming/routing.rst | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/user_guide_src/source/general/modules.rst b/user_guide_src/source/general/modules.rst index 91ec5554c955..19797b099416 100644 --- a/user_guide_src/source/general/modules.rst +++ b/user_guide_src/source/general/modules.rst @@ -153,6 +153,9 @@ the **Modules** config file, described above. .. note:: Since the files are being included into the current scope, the ``$routes`` instance is already defined for you. It will cause errors if you attempt to redefine that class. +When working with modules, it can be a problem if the routes in the application contain wildcards. +In that case, see :ref:`routing-priority`. + Filters ======= diff --git a/user_guide_src/source/incoming/routing.rst b/user_guide_src/source/incoming/routing.rst index 5f18fb4960d8..be571d34b736 100644 --- a/user_guide_src/source/incoming/routing.rst +++ b/user_guide_src/source/incoming/routing.rst @@ -456,7 +456,7 @@ be used when the first parameter is a language string:: // Creates: $routes['users/(:num)'] = 'users/show/$2'; -.. _priority: +.. _routing-priority: Route processing queue ---------------------- @@ -590,7 +590,7 @@ Route processing by priority Enables or disables processing of the routes queue by priority. Lowering the priority is defined in the route option. Disabled by default. This functionality affects all routes. -For an example of use lowering the priority see :ref:`priority`:: +For an example of use lowering the priority see :ref:`routing-priority`:: // to enable $routes->setPrioritize(); From 95a0ed59f17e3d5495bc4ac187b43d9829ae5df1 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 24 Nov 2021 18:38:48 +0900 Subject: [PATCH 2/2] docs: fix by proofreading Co-authored-by: John Paul E. Balandan, CPA <51850998+paulbalandan@users.noreply.github.com> --- 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 be571d34b736..0e9f3bb4e6be 100644 --- a/user_guide_src/source/incoming/routing.rst +++ b/user_guide_src/source/incoming/routing.rst @@ -590,7 +590,7 @@ Route processing by priority Enables or disables processing of the routes queue by priority. Lowering the priority is defined in the route option. Disabled by default. This functionality affects all routes. -For an example of use lowering the priority see :ref:`routing-priority`:: +For an example use of lowering the priority see :ref:`routing-priority`:: // to enable $routes->setPrioritize();