PHP code example of matudelatower / ubicacion-bundle

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

    

matudelatower / ubicacion-bundle example snippets



// app/AppKernel.php

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

            new Matudelatower\UbicacionBundle\UbicacionBundle(),
        );

        // ...
    }

    // ...
}


//your YourBundle/Form/Type/YourForm
use Matudelatower\UbicacionBundle\Form\Type\MatudelatowerLocalidadType;

//...

public function buildForm(FormBuilderInterface $builder, array $options)
{

$builder
       ->add('localidad', new MatudelatowerLocalidadType())

bash
$ php app/console doc:sch:update --dump-sql