kisphp/form-extensions-bundle

Kisphp symfony form extension bundle

0.2.0 2021-10-20 10:59 UTC

This package is not auto-updated.

Last update: 2024-04-26 23:55:27 UTC


README

example workflow

Installation

composer require kisphp/form-extensions-bundle

To enable the bundle register it inside your kernel class app/AppKernel.php

<?php

public function registerBundles()
{
    // ...
    new \Kisphp\FormExtensionBundle\FormExtensionBundle(),
    // ...
}

Register new template in app/config/config.yml:

twig:
    form_themes:
        - "bootstrap_3_horizontal_layout.html.twig"
        - "@FormExtension/Form/field_type_help.html.twig"

Usage

Add help option to form element:

->add('description', TextareaType::class, [
    // ...
    'help' => 'This is my help message',
])

You also may use translation for the message