We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 58a4492 + f36e674 commit b1e4e97Copy full SHA for b1e4e97
forms.rst
@@ -449,6 +449,16 @@ possible paths:
449
data is passed to it, you can
450
:doc:`use the submit() method to handle form submissions </form/direct_submit>`.
451
452
+.. tip::
453
+
454
+ If you need to render and process the same form in different templates,
455
+ use the ``render()`` function to :ref:`embed the controller <templates-embed-controllers>`
456
+ that processes the form:
457
458
+ .. code-block:: twig
459
460
+ {{ render(controller('App\\Controller\\TaskController::new')) }}
461
462
.. _validating-forms:
463
464
Validating Forms
0 commit comments