How to identify active menu link in CakePHP

前端 未结 5 513
南笙
南笙 2021-01-11 22:22

I\'m creating an accordion layout for an admin sidebar. Now I need to identify the active link and add a class active to that link. Here is my code:

<         


        
5条回答
  •  隐瞒了意图╮
    2021-01-11 23:14

    Here simple way to add active class:

    
    

    I think this will helpful for you.

提交回复
热议问题