Created
July 27, 2012 14:56
-
-
Save tristanbes/3188496 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add the bundle to your composer | |
"a2lix/translation-form-bundle" : "dev-master" | |
# Enable the Bundle in the AppKernel.php | |
new A2lix\TranslationFormBundle\A2lixTranslationFormBundle(), | |
# Configure the Bundle in the config.yml | |
a2lix_translation_form: | |
default_locale: en # [Optionnal] Default to 'en' | |
locales: [fr, es, de] # [Optionnal] Array of translations locales. Can be specified in the form. | |
default_required: false # [Optionnal] Default to false. In this case, translation fields are not mark as required with html5 | |
# Template | |
twig: | |
form: | |
resources: | |
- 'A2lixTranslationFormBundle::form.html.twig' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment