Skip to content

Commit

Permalink
Merge pull request #123 from remmel/patch-1
Browse files Browse the repository at this point in the history
Upadate README.md for Symfony 4
  • Loading branch information
tetranz authored Jun 17, 2019
2 parents 23d6162 + 85db07a commit 635c8a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ twig:
- 'TetranzSelect2EntityBundle:Form:fields.html.twig'

```
On Symfony 4, use `@TetranzSelect2Entity/Form/fields.html.twig` instead of `TetranzSelect2EntityBundle:Form:fields.html.twig`
* Load the Javascript on the page. The simplest way is to add the following to your layout file. Don't forget to run console assets:install. Alternatively, do something more sophisticated with Assetic.
```
<script src="{{ asset('bundles/tetranzselect2entity/js/select2entity.js') }}"></script>
Expand Down

0 comments on commit 635c8a1

Please sign in to comment.