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:
active
<
Here simple way to add active class:
Html->link('View All',array('controller' => 'gallaries', 'action' => 'index'));?> Html->link('Add New',array('controller' => 'gallaries', 'action' => 'add'));?>
I think this will helpful for you.