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

Does "widget_addon_prepend" work with Symfony 4? #1246

Open
vanniekerkalex opened this issue Jul 16, 2019 · 5 comments
Open

Does "widget_addon_prepend" work with Symfony 4? #1246

vanniekerkalex opened this issue Jul 16, 2019 · 5 comments

Comments

@vanniekerkalex
Copy link

I'm running Symfony 4 and installed MopaBootstrapBundle with composer: "composer require mopa/bootstrap-bundle", but the "widget_addon_prepend" on my forms do not work.

I get the following error: "The option "widget_addon_prepend" does not exist."

Besides installing the bundle with composer, I have not done anything else, is there anything I need to do to get it work? Is it Symfony 4 compatible?

Below are screenshots showing MopaBootstrapBundle has been added to my "bundles.php" as well as my form element showing the usage of "widget_addon_prepend".

Thank you for any help!!

This is what I'm trying to achieve:

Screenshot 2019-07-16 at 18 49 41

Screenshot 2019-07-16 at 18 45 23

Screenshot 2019-07-16 at 18 44 31

@isometriks
Copy link
Collaborator

DId you add configuration to enable the form support?

mopa_bootstrap:
    form: ~

@vanniekerkalex
Copy link
Author

I wasn't sure where to add that? Please could you point me in the right direction...

Thank you!

@isometriks
Copy link
Collaborator

In any config file. If you're using flex create config/packages/mopa_bootstrap.yaml and add it there, if you have a app/config/config.yml add it there.

@vanniekerkalex
Copy link
Author

Thanks! I added it and it's not giving any errors, but it's still not showing the prepended / appended text on my input field... any thoughts?

@vanniekerkalex
Copy link
Author

Hi @isometriks

Do you have tips for me to get this working? I'd appreciate any advice.

Thanks!

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