phiamo / MopaBootstrapBundle

Easy integration of twitters bootstrap into symfony2
http://bootstrap.mohrenweiserpartner.de
711 stars 349 forks source link

Does "widget_addon_prepend" work with Symfony 4? #1246

Open vanniekerkalex opened 5 years ago

vanniekerkalex commented 5 years ago

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 commented 5 years ago

DId you add configuration to enable the form support?

mopa_bootstrap:
    form: ~
vanniekerkalex commented 5 years ago

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

Thank you!

isometriks commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Hi @isometriks

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

Thanks!