PHP code example of smada / symfony-type-extras-bundle

1. Go to this page and download the library: Download smada/symfony-type-extras-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/ */

    

smada / symfony-type-extras-bundle example snippets



// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Smada\SymfonyTypeExtrasBundle\SmadaSymfonyTypeExtrasBundle(),
        );

        // ...
    }

    // ...
}

public function buildForm(FormBuilderInterface $builder, array $options)
{
    $builder->add('accountNumber', 'input_boxes', ['boxes' => 10])
}
bash
$ php app/console assetic:dump