Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use form extensions #456

Open
NiKo2b opened this issue Nov 25, 2016 · 1 comment
Open

Cannot use form extensions #456

NiKo2b opened this issue Nov 25, 2016 · 1 comment

Comments

@NiKo2b
Copy link

NiKo2b commented Nov 25, 2016

Hello
I have followed all the installation guide, but I have a problem using form extensions. I tried with form_actions and bootstrap_collection but I have errors like :

Could not load type "bootstrap_collection"

Is there something else to add ? I'm using Symfony 3.1

@althaus
Copy link
Contributor

althaus commented Feb 24, 2017

You have to use the FQDN since Symfony 3:

use Braincrafted\Bundle\BootstrapBundle\Form\Type\FormActionsType;

class FooType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder->add('actions', FormActionsType::class);
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants