From 85db07a8db81e39df27605a702ec3d44fb43d528 Mon Sep 17 00:00:00 2001 From: Remy Mellet Date: Tue, 26 Jun 2018 15:00:08 +0200 Subject: [PATCH] Upadate README.md for Symfony 4 On Symfony 4, it seems that we should reference to a resource in a different way otherwise we get that error : Unable to find template "TetranzSelect2EntityBundle:Form:fields.html.twig" --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d8dcbde..4a2e309 100644 --- a/README.md +++ b/README.md @@ -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. ```