|
@@ -35,7 +35,7 @@ Routing usage
|
|
|
|
|
|
Inside a CRUD template, a route can be generated by using the ``Admin`` class.
|
|
Inside a CRUD template, a route can be generated by using the ``Admin`` class.
|
|
|
|
|
|
-.. code-block:: html
|
|
|
|
|
|
+.. code-block:: html+jinja
|
|
|
|
|
|
<a href="{{ admin.generateUrl('list') }}">List</a>
|
|
<a href="{{ admin.generateUrl('list') }}">List</a>
|
|
|
|
|
|
@@ -69,8 +69,9 @@ defined by its name.
|
|
Persistent parameters
|
|
Persistent parameters
|
|
---------------------
|
|
---------------------
|
|
|
|
|
|
-In some cases, the interface might be required to pass the same parameters across the different ``Admin``'s actions.
|
|
|
|
-Instead of setting them in the template or doing other weird hacks, you can define a ``getPersistentParameters``
|
|
|
|
|
|
+In some cases, the interface might be required to pass the same parameters
|
|
|
|
+across the different ``Admin``'s actions. Instead of setting them in the
|
|
|
|
+template or doing other weird hacks, you can define a ``getPersistentParameters``
|
|
method. This method will be used when a link is being generated.
|
|
method. This method will be used when a link is being generated.
|
|
|
|
|
|
.. code-block:: php
|
|
.. code-block:: php
|