Skip to content

Instantly share code, notes, and snippets.

View Maxooo's full-sized avatar

Maxime Corson Maxooo

View GitHub Profile
@Maxooo
Maxooo / UserAddressType.php
Last active August 29, 2015 14:05
Symfony2 - Handle collection type prototype in twig with jquery
<?php
namespace Acme\TaskBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class UserAddressType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)