Skip to content

Commit

Permalink
remove need for setup in twig config
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanmac committed Jun 15, 2023
1 parent fb67443 commit 2d1f8dc
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions docs/reference/form_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,17 +237,7 @@ They will allow you to have a JS date picker onto your form fields as follows:

.. image:: ../images/datepicker.png

In order to use them, you'll need to perform a bit of setup:

.. code-block:: yaml
# config/packages/twig.yaml
twig:
form_themes:
- '@SonataForm/Form/datepicker.html.twig'
Finally, in your form, you may use the form type as follows::
In your form, you may use the form type as follows::

// src/Admin/PageAdmin.php

Expand Down

0 comments on commit 2d1f8dc

Please sign in to comment.