Skip to content

Commit

Permalink
Merge pull request #5382 from kenjis/fix-docs-modules-routing
Browse files Browse the repository at this point in the history
docs: improve Module Routes
  • Loading branch information
paulbalandan authored Nov 25, 2021
2 parents 7c08819 + 95a0ed5 commit bbc48dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions user_guide_src/source/general/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
=======

Expand Down
4 changes: 2 additions & 2 deletions user_guide_src/source/incoming/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------
Expand Down Expand Up @@ -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 use of lowering the priority see :ref:`routing-priority`::

// to enable
$routes->setPrioritize();
Expand Down

0 comments on commit bbc48dc

Please sign in to comment.