Widgets
Datums-Widget
// Datums-Widget mit deutschen Datumsformat und aktuellem Datum als default-Wert $builder->add('date', 'date', array( 'format' => 'd.M.y', 'data' => new \DateTime(), ));
Weitere Informationen auch unter: http://symfony.com/doc/current/reference/forms/types.html
Forms
Form Customization
// app\config\config.yml # Twig Configuration twig: form: resources: - 'form_div_layout.html.twig' - 'MyAppTestBundle::form.html.twig' // src\MyApp\TestBundle\Resources\views\form.html.twig {% form_theme form _self %} {% block form_row %} {% spaceless %} {% if form_errors(form) %}<div class="ym-form ym-error">{% else %}<div class="ym-form">{% endif %} {{ form_label(form) }} {{ form_errors(form) }} {{ form_widget(form) }} </div> {% endspaceless %} {% endblock form_row %}
Doctrine reverse
http://symfony.com/doc/current/cookbook/doctrine/reverse_engineering.html