Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: improve Module Routes #5382

Merged
merged 2 commits into from
Nov 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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