kisphp / form-extensions-bundle
Kisphp symfony form extension bundle
0.2.0
2021-10-20 10:59 UTC
Requires
- php: >=7.4
- symfony/symfony: dev-kp-3.4
Requires (Dev)
- phpunit/phpunit: ~9.5
- symfony/var-dumper: ~3.4|~5.0
- twig/twig: ~2.4|~3.0
This package is not auto-updated.
Last update: 2024-11-09 02:23:31 UTC
README
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