From 0ae109918d8ffb3af5c44beb757f000b929af200 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 12 Jan 2016 14:13:37 +0000 Subject: [PATCH] Update README to include clearer explanation Someone in the issue tracker didn't catch that you have to add `{{ form_stylesheet(form) }}` to the header instead of the usual ``. I noticed it could have been more obvious in the README. --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 69eae94..a1d5c7f 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,13 @@ sc_datetimepicker: $ php app/console assets:install web/ ``` +### Step 4: Add assets to your templates + +Add `{{ form_stylesheet(form) }}` & `{{ form_javascript(form) }}` to your header or css/js blocks. + +The principle is to separate the javascript, stylesheet and html. +This allows better integration of web pages. + ## Usages ``` php @@ -92,10 +99,6 @@ public function buildForm(FormBuilder $builder, array $options) } ``` -Add form_javascript and form_stylesheet - -The principle is to separate the javascript, stylesheet and html. -This allows better integration of web pages. ### Example: