I was wondering, what is the best way to change the "current" class to be "active" so Bootstrap will work correctly with it?
I thought about copying and overriding the knp_menu_html.twig but i think its not the best way...
Anyway better doing it?
You can pass it like that:
{{ knp_menu_render('AcmeDemoBundle:Builder:mainMenu', {'currentClass': 'active'}) }}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With