PHP code example of adamquaile / symfony-fieldset-bundle
1. Go to this page and download the library: Download adamquaile/symfony-fieldset-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
adamquaile / symfony-fieldset-bundle example snippets
public function registerBundles()
{
$bundles = array(
// ...
new AdamQuaile\Bundle\FieldsetBundle\AdamQuaileFieldsetBundle(),
);
//...
}
// A fieldset with your fields defined in a callback function
$builder->add('my_group_example_one', FieldsetType::class, [
'label' => false, // You probably don't want a label as well as a legend.
'legend' => 'Your fieldset legend',
'fields' => function(FormBuilderInterface $builder) {
$builder->add('first_name', TextType::class, [
'label' => 'First Name'
]);
$builder->add('last_name', TextType::class, [
'name',
'type' => TextType::class,
'attr' => [
'
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.