title: How to identify active menu link in CakePHP
body: <p>I'm creating an accordion layout for an admin sidebar. Now I need to identify the active link and add a class <code>active</code> to that link. Here is my code:</p>
  
  <pre><code>&lt;div class="accordion-group"&gt;
  &lt;div class="accordion-heading"&gt;
      &lt;a href="#collapseSeven" data-parent="#side_accordion" data-toggle="collapse" class="accordion-toggle"&gt;
          &lt;i class="icon-th"&gt;&lt;/i&gt; Gallery Manager
      &lt;/a&gt;
  &lt;/div&gt;
  &lt;div class="accordion-body collapse" id="collapseSeven"&gt;
      &lt;div class="accordion-inner"&gt;
          &lt;ul class="nav nav-list"&gt;
              &lt;li&gt;
                  &lt;?php echo $this-&gt;Html-&gt;link('View All',array('controller' =&gt; 'gallaries', 'action' =&gt; 'index'));?&gt;
              &lt;/li&gt;
              &lt;li&gt;
                  &lt;?php echo $this-&gt;Html-&gt;link('Add New',array('controller' =&gt; 'gallaries', 'action' =&gt; 'add'));?&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What is the best way to do this? Thanks in advance!</p>