PHP code example of bukashk0zzz / booleantype-bundle

1. Go to this page and download the library: Download bukashk0zzz/booleantype-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/ */

    

bukashk0zzz / booleantype-bundle example snippets


$bundles = array(
	// ... other bundles
	new Bukashk0zzz\BooleanTypeBundle\Bukashk0zzzBooleanTypeBundle(),
);

class AccountProfileType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('nameFirst', TextType::class, ['label' => 'First Name'])
            ->add('nameLast', TextType::class, ['label' => 'Last Name'])
            ->add('active', BooleanType::class, [
                'label' => 'User active?',
                '