Twig Config

So there are few things to note

  • We are using symfony bootstrap_3_form theme
  • We have a custom field type for rendering file inputs.
  • Under the globals we declared some global variables that can be used in any twig template.
twig:
    debug: '%kernel.debug%'
    strict_variables: '%kernel.debug%'
    form_themes:
        - 'bootstrap_3_layout.html.twig'
        - 'form/fields.html.twig'
    globals:
        facebook_app_id: '%app.facebook_app_id%'
        facebook_api_version: '%app.facebook_api_version%'
        email: '%app.from_email%'
        google_client_id: '%app.google_client_id%'

FileUpload

If you want to use the file upload you will have to include some js. See the [account setting page] for an example.