How to change the “current” class to “active” in KNPMenuBundle

前端 未结 2 1830
傲寒
傲寒 2020-12-31 11:45

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 overridi

2条回答
  •  自闭症患者
    2020-12-31 12:06

    You can pass it like that:

    {{ knp_menu_render('AcmeDemoBundle:Builder:mainMenu', {'currentClass': 'active'}) }}
    

提交回复
热议问题