Browse Source

Added note about linking to other Admins using the Route Name

Christian Morgan 11 năm trước cách đây
mục cha
commit
5bd302c762
1 tập tin đã thay đổi với 8 bổ sung1 xóa
  1. 8 1
      Resources/doc/reference/routing.rst

+ 8 - 1
Resources/doc/reference/routing.rst

@@ -72,7 +72,14 @@ the admin variable's ``generateUrl()`` command:
     <a href="{{ admin.generateUrl('list', params|merge('page': 1) }}">List</a>
 
 Note that you do not need to provide the Admin's route prefix (baseRouteName) to 
-generate the URL, just the action name.
+generate a URL for the current Admin, just the action name.
+
+To generate a URL for a different Admin you just use the Route Name with the usual 
+Twig helpers:
+
+.. code-block:: html+jinja
+
+    <a href="{{ path('admin_acme_demo_foo_list') }}">List</a>
 
 
 Create a route